Re: PPC and x86 target but build only one version
Re: PPC and x86 target but build only one version
- Subject: Re: PPC and x86 target but build only one version
- From: "James Larcombe" <email@hidden>
- Date: Thu, 16 Feb 2006 17:41:31 -0000
Daniel Jalkut wrote:
Oliver - in your debug build configuration, set the architectures
value to "$(NATIVE_ARCH)"
The problem Olivier may find with this is that you still need your
deployed builds to build on both architectures, ie. with ARCHS set
to "ppc i386". In theory you should be get xcodebuild to do this
(when you build your final deployable application) with the flag
'ARCHS ppc i386'
but this is another thing that doesn't seem to work properly for
subprojects (I forgot this one in my earlier post!). The subproject
files are compiled for both architectures, but the final libraries
are only linked for the native architecture, and thus when the top-
level application is built (as a Universal Binary), link errors
occur.
The best workaround we've found is to set ARCHS to "ppc i386" in
the .xcconfig configuration file on which all our projects' Release
configurations are based, and have NATIVE_ARCH in the .xcconfig
file for the Debug configurations. This works fine, but means that
you can't build the Release configuaration for a single architecture
on your own machine without modifying the project settings. This
isn't a big deal but is the sort of thing you always forget to do on
those fairly rare occasions when you need to track down a release-
build-only problem on your development machine.
Of course this also relies on all your subprojects using the same
underlying .xcconfig files, but these are so useful that I imagine
most people are already doing this.
James.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden