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
For me following worked
Xcode 8.1 ios 10.x
(target -> Build Settings -> Header search paths )
"${PODS_ROOT}/Cordova/CordovaLib/Classes/Public"
as
"${PODS_ROOT}/Headers/Public" folder was empty
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)
The above solutions did not work for me.
In my case, when I build my iOS platform, CordovaLib folder was not included.
1. Delete existing CordovaLib.xcodeproj
2. Add existing files. Add CordovaLib.xcodeproj from CordovaLib folder
3. Add dependencies and select CordovaLib
4. Add link Binaries with library and select libCordova.a
Thats it!
Uninstall And reinstall Cordova Platform
cordova platform rm ios
cordova platform add ios
Also set ENABLE BITCODE = NO in the Build Settings