Cordova app failing to Archive with Xcode 7.3 (Cordova/CDVViewController.h' file not found)

爱⌒轻易说出口 提交于 2019-12-05 03:05:47

Try this out, this should work.

  • Run this in your terminal: cordova platform update ios

  • Open your project in Xcode

  • Go to Preference -> Locations -> Advanced

  • Choose "Unique" as the option for Build Location

  • Product -> Clean

  • Product -> Build

Try out cordova platform update ios as well as it fixed the problem for the questioner

If you have tried all the suggestions above and still it does not work. You can try these:

First check if you have this folder "CordovaLib", under: platforms->ios

Second, make sure you have the icons and splash images in your "resources" folder.

if not:

$ ionic resources

then run:

ionic platform remove ios
ionic platform add ios

These commands will install "CordovaLib" folder, then do the build again.

This does not work with Xcode 8. You have to reinstall latest version of cordova, and remove platform and add it again

npm un cordova
sudo npm install -g cordova // yarn global add cordova
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!