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

后端 未结 3 957
轮回少年
轮回少年 2021-01-02 07:12

Our phonegap app builds fine for the iphone simulator but generates linker errors when building the app on an iphone. the only thing that changed was installing testflight a

相关标签:
3条回答
  • 2021-01-02 07:37

    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/

    0 讨论(0)
  • 2021-01-02 07:38

    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.

    0 讨论(0)
  • 2021-01-02 07:51

    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.

    0 讨论(0)
提交回复
热议问题