I understand that setting this value to YES speeds up the building time. But as far as I know setting this option to "YES" will build for connected device's architecture.
So if I had connected an older device such as iPhone 3GS (ARMv7) release build should work on ARMv7, ARMv7s and ARM64.
But what happens if I release with a iPhone 5 (ARMv7s) connected while "Build Active Architectures Only" set to "YES" ? I can assume build will work on ARMv7s and ARM64, but will it work on older devices which has ARMv7?
The "build active architecture only" setting causes everything except the current Mac's architecture to be ignored (and the current one is of course valid), hiding the problem. Instead, you should look up a row or two in the settings, and change the "Architectures" setting to "Standard".
ONLY_ACTIVE_ARCH (Build Active Architecture Only) Description: Boolean value. Specifies whether the product includes only object code for the native architecture.
Choose the project in the Project Navigator on the left. Select the Configurations target from the Targets section and click the Build Settings tab at the top. The Build Settings tab shows the build settings for the Configurations target. It's possible to expand this list with build settings that you define.
Yes, I don't think Apple will let you submit the app that way, but if you distribute it in other ways, it won't work on older devices... That's why it's usually set as YES for Debug and NO for Release
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With