I am trying to build my project to my iphone 5 and I keep getting this warning
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv6 armv7)
Does anyone know how to fix this?
I am trying to build my project to my iphone 5 and I keep
Share
You get this error becuse your active Architecture is
armv7s(armv7s is the architecture for iPhone 5’s A6 SoC):but this architecture is not listed among your valid architectures:
Modify the “Valid Architectures” in your project target’s “Build Settings” by adding armv7s (you might as well remove armv6 since Xcode 4.5 does not support that any more):
You might also need to change the “Architectures” property:
and set “Build Active Architecture Only” to NO (so your project is built for all listed architectures including armv7, which older devices, e.g. iPhone 4S, can execute):
Also, check out this answer.