Blog coding and discussion of coding about JavaScript, PHP, CGI, general web building etc.

Wednesday, June 1, 2016

Xcode 7.2: In “Archive”: Getting the issue: “Cordova/CDVViewController.h’ file not found ”. While there is no such issues in building the app

Xcode 7.2: In ?Archive?: Getting the issue: ?Cordova/CDVViewController.h? file not found ?. While there is no such issues in building the app


In iOS, I update 7.2. I'm able to build my existing project to my device with no problem. When it came time to archive the project to prepare for submission to the app store, however, I'm getting a build error - Cordova/CDVViewController.h file not found. I've gone through just about every fix/workaround that I've not found Stack Overflow, and Google, and none of them have worked for me. If I go back to Xcode 6.4 I can build and archive no problem, but I can't build to my device now that it's running iOS 9.1.

I'm guessing it's a configuration issue somewhere with the new Xcode version setup. Has anyone else run into this? Again, the usual suspects (Preferences > Location > Derived Data > Advanced > Unique), Header Search Paths, etc. all seem to be fine.

Thanks, Adisheshu

Answer by ArunDhwaj IIITH for Xcode 7.2: In ?Archive?: Getting the issue: ?Cordova/CDVViewController.h? file not found ?. While there is no such issues in building the app


This issues seems to appear in Xcode 7.2 due to search path/include.

Solve this in following way:

  1. Select your in Xcode "TARGETS".

  2. Go to "Build Settings" tab.

  3. Make sure that the filter is set to "All" and not "Basic".

  4. Search "Header Search Paths"

  5. Double click and add this path: $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include

  6. Now clean the Project, restart the Xcode.

  7. Able to make the "Build", and "Archive".

  8. Thats All.

Answer by dijipiji for Xcode 7.2: In ?Archive?: Getting the issue: ?Cordova/CDVViewController.h? file not found ?. While there is no such issues in building the app


Also set ENABLE BITCODE = NO in the Build Settings

Answer by Andrew Bogaevskyi for Xcode 7.2: In ?Archive?: Getting the issue: ?Cordova/CDVViewController.h? file not found ?. While there is no such issues in building the app


I also had this problem but for me adding path to Header Search was not enough. I have added CDVViewController.h to "public" section into subproject CordovaLib.xcodeproj -> CordovaLib(target) -> Build Phases -> Headers -> Public

Answer by im3r3k for Xcode 7.2: In ?Archive?: Getting the issue: ?Cordova/CDVViewController.h? file not found ?. While there is no such issues in building the app


You should update your project's Cordova iOS version to 3.9.2 (latest version of 3 as of 3/11/16). I got this same error when using 3.8.0 and it was fixed in 3.9.

Alternatively, you could upgrade to Cordova iOS v4.1.0 (bleeding edge as of 3/11/16) but be aware you lose support for iOS 6 and 7, and cordova-plugin-screen-orientation isn't updated to use 4 yet so you have to lock your app in portrait or landscape.

EDIT:

Without upgrading you can fix this manually in XCode. go to

Build Settings -> Header Search Paths : Change:

$(OBJROOT)/UninstalledProducts/include  

to:

$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include  

(related issue on apache.org)

Answer by Gil Epshtain for Xcode 7.2: In ?Archive?: Getting the issue: ?Cordova/CDVViewController.h? file not found ?. While there is no such issues in building the app


If adding this line:

$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include  

to the headers-search-path (as described in 'im3r3k' answer) didn't fixed this issue, also set this:

Build Settings -> Architectures -> Build Active Architecture Only -> YES  


Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72

0 comments:

Post a Comment

Popular Posts

Powered by Blogger.