Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting "Build Active Architectures Only" To "YES" Pros vs Cons?

Tags:

ios

iphone

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?

like image 496
Rukshan Avatar asked Nov 19 '14 13:11

Rukshan


People also ask

What is build active architecture only?

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".

What is Only_active_arch?

ONLY_ACTIVE_ARCH (Build Active Architecture Only) Description: Boolean value. Specifies whether the product includes only object code for the native architecture.

Where is build settings in Xcode?

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.


1 Answers

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

like image 59
Fabio Ritrovato Avatar answered Sep 27 '22 20:09

Fabio Ritrovato