Re: Cross OS version UB development
Re: Cross OS version UB development
- Subject: Re: Cross OS version UB development
- From: John Daniel <email@hidden>
- Date: Sat, 24 Feb 2007 11:03:33 -0600
On Feb 24, 2007, at 10:44 AM, Shawn Erickson wrote:
On Feb 24, 2007, at 8:31 AM, John Daniel wrote:
On Feb 24, 2007, at 9:52 AM, Theodore H. Smith wrote:
Hi people,
What's the earliest OS I can cross compile for OS versions? Right
now I'm using these settings.
SDKROOT = /Developer/SDKs/MacOSX10.3.9.sdk
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
Now, what if I wanted to let PPC users run my library on MacOS
10.2? Is this possible? Whats the earliest OS I can cross compile
for? I'd rather know than test it out for myself because I don't
actually have MacOS10.2 or 10.1 or 10.0 installed.
It is probably safer to create two targets in your project, one
for Intel only (using 10.4) and one for PPC (10.2) and meld them
together using lipo in a 3rd target that has only a run script
build phase.
Why? Xcode supports building a UB directly for you (by default
Release configuration does this while Debug only build the platform
you are running on). You don't need to make it harder on yourself.
This capability works fine so I suggest you use it.
Because I'm not an Xcode wizard. I know I can create a 10.4 UB in one
step. But I saw those "_i386" setting in the message and didn't
recognize them. I thought to myself, "Does Xcode have separate
setting for PPC and i386? Are there PPC version of these settings
too?" I did a quick Google search and it appears they exist, but I've
never seen them before. Is Xcode smart enough to completely ignore a
10.3 SDKROOT when there is an i386-specific SDKROOT? Do I have any
Run Script build phases that would depend on plain 'ole SDKROOT?
Instead of taking the time to find out all the definitive answers to
those questions, I just say it is "probably safer" to use multiple
targets. The original poster may want to study the situation and try
building a UB in one step for multiple OS versions. That's fine with
me, but I wouldn't do it. It is added time and risk with little benefit.
John
_______________________________________________
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