Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone/iPad Active Architecture? What is it? Why is it there? Who needs it?

What is this selection for? I have the Architectures set to Optimized (armv6 armv7) so a fat binary should be getting build with both, right?

So why does this need to set this in the menu? What does it do?

like image 255
ACBurk Avatar asked Apr 20 '10 19:04

ACBurk


People also ask

What does build active architecture only mean?

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

Where is build active architecture only Xcode?

In the Build settings for the target there is an additional option in the Architectures section named “Build Active Architecture Only” which influences how the binary is built.


1 Answers

Well mostly you do not need it, but even if you are building fat binaries you may not always be building both versions.

If you check the Build settings for the target there is an option in the Architectures section named "Build Active Architecture Only". I think by default this is selected when you are building for debug. The idea being that if you have armv6 device plugged in Xcode is smart enough to detect that and only build that version saving you some time.

Of course when you are building for distribution the option will not be checked to ensure you build for both architectures (not just the active one).

So I guess the short answer is that you do need to mess with it as Xcode will set it for you based on which device you have plugged in.

like image 68
kharrison Avatar answered Oct 21 '22 20:10

kharrison