Re: Universal Binaries for an app built with different SDK versions
Re: Universal Binaries for an app built with different SDK versions
- Subject: Re: Universal Binaries for an app built with different SDK versions
- From: Chris Forsythe <email@hidden>
- Date: Thu, 12 Jan 2006 19:08:57 -0600
Steve Bennett wrote:
What I'd *really* like to make a universal binary of these elements, where
the PPC version is built with the older SDKs and compiler, and the Intel
version built with the universal SDK and new compiler.
So below I've pasted some of the steps I've been writing up for doing
something similar (albeit I don't really support anything below 10.3, so
eh). Hope it helps. Some of this was pointed out to me by Evan
Schoenburg from the Adium project, all of it should be derived from the
UB docs.
Chris
Steps to making ub on an existing project
1) Launch Xcode
2) Get info on the main project
3) Go to build tab
4) Ensure it is on the All Configurations drop down selection for
Configurations, and Collection is set to All Settings
5) Search for Architectures, edit this setting, and select both PPC and
Intel
6) Try to build in Deployment or Release. Leave the inspector window for
the main project open.
7) You will see a new error for Undefined symbols. This is because you
are not linking to the 10.4u framework.
8) SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk needs to be put in.
9) If you plan to support or even just not crash on 10.2, you need to
set all of these things:
ARCHS = ppc i386
SEPARATE_STRIP = YES
GCC_VERSION_i386 = 4.0
GCC_VERSION_ppc = 3.3
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
MACOSX_DEPLOYMENT_TARGET_ppc = 10.2
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
SDKROOT_ppc = /Developer/SDKs/MacOSX10.2.8.sdk
The only settings you do not need to add is ARCHS and SEPARATE_STRIP.
Everything else needs to be manually added.
_______________________________________________
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