Select to view content in your preferred language

armv7s ONLY_ACTIVE_ARCH=YES

2662
1
Jump to solution
11-15-2012 07:28 AM
AaronConnolly
Regular Contributor
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?

Thanks,
- Aaron
0 Kudos
1 Solution

Accepted Solutions
AaronConnolly
Regular Contributor
Here's a follow up link from Apple that describes the problem and provides a solution. It looks as though there's no harm in flipping the build active arch only setting to NO:

http://developer.apple.com/library/ios/#qa/qa1760/_index.html

Thanks,
- Aaron

View solution in original post

0 Kudos
1 Reply
AaronConnolly
Regular Contributor
Here's a follow up link from Apple that describes the problem and provides a solution. It looks as though there's no harm in flipping the build active arch only setting to NO:

http://developer.apple.com/library/ios/#qa/qa1760/_index.html

Thanks,
- Aaron
0 Kudos