Fix XCode 5.1 Build/Linker error in PhoneGap 3.4

พล AI Stream by Nextflow · 6K views · 2014 · 2:37

Open on YouTube

Software (other)Testing, debugging & developer toolstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering libCordova.a and Mach-O linker architecture errors in Xcode, since it shows the exact Build Settings changes to make.

Recommended by 2 people across 2 different months, 2014 to 2016.

What it is

A short screencast walking through how to fix the build and linker errors that appeared in PhoneGap/Cordova 3.4 iOS projects after upgrading to Xcode 5.1. It shows the Build Settings changes needed for the arm64 architecture and Cordova's library project.

What people said

Recommends voyager · 2014-05 · Stack Overflow · on “xcode 5.1: libCordova.a architecture problems”

Follow the instructions on this video: [this video] Just add arm64 in your projects valid architectures and remove all the conditional architecture of Cordova's project.

Recommends norman784 · 2015-05 · Stack Overflow · on “Apple Mach-O Linker Error on XCode 6.0.1”

I found the solution, isn't a monkey patch, its a correction of the project. What we need to do its to change the architectures supported by the application: Go to Project -> Build Settings (check to see "all") -> Architectures -> Standard architectures (armv7 armv7s arm64) Go to Cordoba lib project -> Build Settings (check to see "all") -> Architectures : Open the Debug tree and remove all elements inside them Open the Release tree and do the same Go to Cordoba lib project (select target this time) and do the same of the step 2 See the [this video] for detailed information.

Cites Christine · 2016-05 · Stack Overflow · on “Cardboard photosphere(built in Unity3d) doesn't run in iphone”

Long story short, photosphere was able to run in Android and inside Unity3d. But it doesn't work for my i phone. I have come a long way with solving errors and change many settings in Xcode after reading many online posts, but still can't run it in i phone. I think its better if I list major changes that I made along the way: Please help!! Have stuck on it for days!! For arm64: I have IL2CPP as Scripting Backend in Unity3d, architecture is then default to x86_64 For Xcode settings: I follow this: [this video] For -undefined and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together clang: error: linker command failed with exit code 1 (use -v to see invocation) : I have set Ena