title: iOS Ionic build failed
body: <p>I try to build my app in ionic to IOS however I get an error, when i try ionic build iOS. Here is the error code</p>
  <p><strong>BUILD FAILED</strong></p>
  <p>The following build commands failed:</p>
  <blockquote>
  <p>CompileC
  build/varfinz.build/Debug-iphonesimulator/varfinz.build/Objects-normal/i386/CDVFile.o
  varfinz/Plugins/org.apache.cordova.file/CDVFile.m normal i386
  objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)</p>
  <p>Error: Error code 65 for command: xcodebuild with args:
  -xcconfig,/Users/lorenzo/Desktop/varfinz5/platforms/ios/cordova/build-debug.xcconfig,-project,varfinz.xcodeproj,ARCHS=i386,-target,varfinz,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/lorenzo/Desktop/varfinz5/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/lorenzo/Desktop/varfinz5/platforms/ios/build/sharedpch</p>
  </blockquote>
  <p>Here is the code part with the error. The error is on the 3rd line with the snippet self = (CDVFile*)[super initWithWebView:theWebView];
  Xcode says following: &quot;No visible @interface for CDVPlugin declares the selector initWithWebView</p>
  <pre><code>- (id)initWithWebView:(UIWebView*)theWebView
  {
      self = (CDVFile*)[super initWithWebView:theWebView];
      if (self) {
          filePlugin = self;
          [NSURLProtocol registerClass:[CDVFilesystemURLProtocol class]];
  
          fileSystems_ = [[NSMutableArray alloc] initWithCapacity:3];
  
          // Get the Library directory path
          NSArray* paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
          self.appLibraryPath = [[paths objectAtIndex:0] stringByAppendingPathComponent:@&quot;files&quot;];
  
          // Get the Temporary directory path
          self.appTempPath = [NSTemporaryDirectory()stringByStandardizingPath];   // remove trailing slash from NSTemporaryDirectory()
  
          // Get the Documents directory path
          paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
          self.rootDocsPath = [paths objectAtIndex:0];
          self.appDocsPath = [self.rootDocsPath stringByAppendingPathComponent:@&quot;files&quot;];
  
      }
  
      return self;
  }
  </code></pre>