Our iOS application relies on a commercial third-party static lib, available only for armv6 + armv7. For this reason, I cannot create our application for armv7. Only armv6 + armv7 + simulator.
Our builds are deployed and launched on the iPhone-5 without any problems - it runs the armv7 code.
However, I cannot find a way to debug directly on iPhone 5. When I connect iPhone-5 and try to build for debugging, I get linker errors like this:
"No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv7)."
Initially, I thought that perhaps my setting of โBuild only active architectureโ for the debug configuration made Xcode not try to build for armv7 when iPhone-5 (armv7s) was connected.
But when I set this to โNOโ (constantly creating Xcode for ALL SUPPORTED ARCHITECTURES), I get a whole different bunch of build errors (excerpt below --- we have many goals, and each of them generates similar errors).
=== BUILD NATIVE TARGET ASPCommon OF PROJECT ASPCommon WITH CONFIGURATION Debug === Check dependencies No architectures to compile for (ARCHS=i386, VALID_ARCHS=armv7). ** BUILD FAILED ** The following build commands failed: Check dependencies (1 failure) Command /bin/sh failed with exit code 65
This target has no NO dependencies, it only builds against the iOS SDK frameworks and works great when a device other than the iPad 4 / iPhone 5 is connected.
Finally, my question is: is it even possible to debug armv7 code on an armv7s device? If possible, when am I doing wrong in my build settings to break this?
Thanks!
source share