I was looking at the configuration of the Sparkle project and noticed that they set:
Valid architectures description from apple:
Space-separated list of identifiers. Specifies the architectures for which the binary may be built. During the build, this list is intersected with the value of ARCHS build setting; the resulting list specifies the architectures the binary can run on. If the resulting architecture list is empty, the target generates no binary.
So, why set architectures different from valid architectures if it won't run on ppc anyways?
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".
Build Active Architecture Only This is the bool value which specifies the architectures Xcode is going to build for all the valid architectures or only for the one on which the app is currently being run on by looking to the target selected for. By default in Debug mode Build Active Architecture Only value is YES.
VALID_ARCHS (Valid Architectures) Space-separated list of identifiers. Specifies the architectures for which the binary may be built. During the build, this list is intersected with the value of ARCHS build setting; the resulting list specifies the architectures the binary can run on.
ONLY_ACTIVE_ARCH (Build Active Architecture Only) Description: Boolean value. Specifies whether the product includes only object code for the native architecture.
When set to 'Native architecture of the Build Machine', you might want to specify which architectures your app works on.
For example, if you have an app that isn't ready for 64-bit environment (it might compile, but it would crash), you put valid architectures just 32-bit, so it won't build the 64-bit section even on 64-bit computer.
As for your Sparkle question - you'll need to ask Sparkle devs, but I bet it's just a value that comes from days when PPC was still widely used.
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