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 sto
This issues seems to appear in Xcode 7.2 due to search path/include.
Solve this in following way:
Select your [projectName]
in Xcode TARGETS.
Go to Build Settings tab.
Make sure that the filter is set to "All" and not "Basic".
Search "Header Search Paths"
Double click and add this path to both "Debug" and "Release": $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include
Now clean the Project and restart Xcode.
Able to make the Build and Archive.
That's All.
For me the $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include
was already in the Header Search Paths (using XCode 8 in El Capitan). I then added to User Header Search Paths the specific path to CordovaLib
folder, with recursive
option enabled (for unexperienced XCode users like myself, select the project in the tree view (1st node) to see "Build Settings"!!)
But watch out for spaces! After a lot of missings it was safer to just drag the folder from a finder window, and it filled as $(SRCROOT)/..
(cont.), which was not expected but did work..
Also in XCode/Preferences/Locations/Custom Paths
I've added a CORDOVALIB name with the same folder as before, in the same manner (this time, the full path was used, without the $(SRCROOT)
thing).
Took me quite some hours to figure all out...
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
This fixed it for me:
Taken from https://forum.ionicframework.com/t/cordova-cdvviewcontroller-h-file-not-found-in-xcode-7-1-beta/32232/40
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
supplementing the response. Add
"$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"
Don't replace the existing line that looks similar, that is still needed to be backwards compatible with Xcode 7 and Xcode 6.4.
click here