Xcode 5 and phonegap: linker errors on building for device but not for simulator

微笑、不失礼 提交于 2019-11-30 12:59:17

This kind of problems occur while updating your Xcode but any third party tool you are using may not be updated with this architecture armv64.

So Click on your Project Navigator from XCode.

Click On Targets from your Project and click on BuildSettings from it.

Find Valid Architectures in it.

Just double click on that and remove armv64 from that.

Make sure there is armv7 and armv7s only.

In my case this worked for me.

Clean and build your project. It should work fine now.

Hope it helps you.

EDIT

Now, as of Feb 1st 2015, apple will not allow apps without arm64 architecture supported.

So make sure that all the apps submitted have arm64 support.

seems like we also unintentionally upgraded to xcode 5.1, causing the problem. phonegap 3.4 and xcode 5.1 are incompatible unless you make some changes.

here is the solution: http://shazronatadobe.wordpress.com/2014/03/12/xcode-5-1-and-cordova-ios/

Sorry if this might seem like a trite answer, but the following steps are usually what I always do when I see linker errors :

  • Ensure your code is up to date, with all the latest fixes and versions.
  • Make sure you update your submodules. In git : git submodule update --init --recursive
  • Please do a Clean Build Folder : Go to Product, Hover on Clean and press together (Command + Option) and click on "Clean Build Folder".

Rinse and Repeat.

In case you have any modules that are not being references correctly, head over to your Build Phases, REMOVE the modules that are troubling you and re-add them.

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