AnsweredAssumed Answered


Question asked by aconnolly on Nov 15, 2012
Latest reply on Nov 15, 2012 by aconnolly
I have a project with a build target of iOS 5.1, the valid architectures setting has only 'armv7' in it and I want to attach an iPhone 5 to Xcode directly. When attempting to build/run the application on the device through Xcode I get the following build time error:

Check dependencies:
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv7).

I noticed that in the project settings there is a setting: "Build Active Architecture Only" and it is set to YES. My guess is that the iPhone 5 is running on the armv7s architecture but clearing armv7s from the project settings per ESRI's instructions renders the build invalid because of the ONLY_ACTIVE_ARCH setting.

A couple questions:

1. Is it necessary to flip the ONLY_ACTIVE_ARCH setting to NO? (I was able to do this and build/run on the iPhone 5 successfully)
2. Is there any harm in not building for active architecture only?
3. Should this be added to the "Configuring an Xcode project?" notes?

- Aaron