In order to test the iOS9 patch I needed to update my Xcode installation to 7.1 beta. 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 found on this forum, 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.
I’m also getting the same error. I’m not using Ionic, just phonegap. When I build for debugging on my device it works fine, when I go to archive I get the error you’re mentioning. I’m still digging through Xcode to find a solution. I’ll update here if I find one.
@georgeleo - that worked for me as well. Nice find! However, I can’t build to my device in Xcode 7 GM seed because my phone is on iOS 9.1 beta, so I think the workaround might be to build in 7.1 and archive in 7 GM. Thanks again!
Great works for me… there are many solutions online… but nothing works. You just need to add on search path “$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include”
I had a Cordova 4.3. Now I’ve updated to 5.3.3 and it works well. Nonetheless I am afraid to use 5.3.3. I heard about many regression errors with plugins on Android. So guys were there any folks that managed to run archive process on the 4.3 version? Thanks!
I am using a script to build and run iOS apps
Is it possible to set "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" in the Build settings using the xcodebuild cli’s?