On Oct 10, 2006, at 6:12 PM, Walter wrote: I'd like to build universal binaries from my development machine (Intel processor). For our current released versions, the builds must be ppc only.
I tried setting "ARCHS_i386 = i386 ppc", but on the Intel machine it doesn't build a universal binary or compile for ppc.
Does anyone know how to correct this issue?
Trying to set the Intel arch specific flags to build PPC is only going to confuse things badly.
First, you need to decide how you're going to distinguish between "building for my development machine" and "current released version". Usually that's done with build configurations. You build the Debug configuration on your desktop, and your Release organization builds the Release configuration. You simply set the ARCHS in Debug to build ppc i386, but in Release set it to ppc.
What you really want, though, is "on a development machine, build it thin native." So for your Debug configuration, set ARCHS to $(NATIVE_ARCH). That means that Debug builds will build only the architecture for the machine they're built on. For Release, leave it at 'ppc'.
Better yet, for your Release configuration, you could (at the Project level) set VALID_ARCHS to 'ppc'. That throttles ARCHS to only the architectures in ARCHS that are in VALID_ARCHS. So no matter what you set your architecture to be, your release configuration will always build PPC only (or nothing at all!)
Chris |