Reputation: 483
I am having some build issues with Xcode 6 and cannot get my app to compile for all devices and simulators at the same time. The issue seems to be related to figuring out the Valid Architectures settings in the build settings, partially explained in other SO threads, but not sufficiently addressing my specific problem.
I am building a Cordova 3.6 app, and working on a MBP Mac OS X 10.9, with Xcode 6.
With the following Build Settings (screenshot below), I get the following build results:
Build successful - Simulator - iPhone 4s/iPhone 5s/iPhone 6
Build successful - Devices - iPhone 4s (iPhone 5s device not tested)
Build FAILS - Devices - iPhone 6
My build settings and error for building for the above results are as follows:
However, if I change the Valid Architectures and remove "arm64", and change Build Active Architecture Only to "No", then my build works for all devices but fails for simulators for iPhone 5s and iPhone 6. I get the following build results:
Build successful - Simulator - iPhone 4s
Build FAILS - Simulator - iPhone 5s / iPhone 6
Build successful - Devices - iPhone 4s / iPhone 6 (iPhone 5s device not tested)
I have the following questions:
Thanks in advance for the help!
Upvotes: 2
Views: 1545
Reputation: 483
Solved it. While I don't know exactly how to address the above issues, I just did a platform update for cordova, and did a clean build. Now I can build and run on all simulators and devices. Hope this helps someone.
Upvotes: 2