Mac OS X Deployment Target
Mac OS X Deployment Target
- Subject: Mac OS X Deployment Target
- From: Howard Rodstein <email@hidden>
- Date: Thu, 13 May 2010 19:07:33 -0700
I have spent much of the day trying to understand what "Mac OS X Deployment
Target" means (because I support a bunch of sample Xcode projects used by
people running OSes from 10.4 to 10.6). I am just as confused as when I
started.
The Xcode SDK Compatibility Guide says (page 12):
When you build your application, your Deployment OS version selection
is reflected in the MinimumOSVersion entry in the application's
Info.plist file.
However I set Mac OS X Deployment Target to 10.5 and compiled and examined
the Info.plist file in the built executable package. There is no
MinimumOSVersion key in there.
The tips displayed at the bottom of the Xcode 3.2.2 build settings tab (on
OS X 10.6.3) when you select Mac OS X Deployment Target say:
"Mac OS X 10.5 - Code will not load on systems earlier than 10.5"
Empirically this does not seem to be always true. I compiled a plug-in with
Mac OS X Deployment Target set to 10.5 but it still ran on OS X 10.4.11.
However setting Mac OS X Deployment Target to "Compiler Default" or 10.6
generated an executable that failed to dynamically link on OS X 10.4.11.
Why would it run on 10.4.11 with Deployment Target set to 10.5 but not with
it set to 10.6?
Is this because different OS glue routines are linked based on the
Deployment Target and I got lucky with DT=10.5 but not DT=10.6?
What exactly does "Mac OS X Deployment Target" do? It seems to have
side-effects beyond controlling whether linking is strong or weak.
The projects that I am responsible for need to be compilable and runnable
on OS X 10.4.11 or later. They do not use any new (post 10.4) stuff. I know
I could set them to use Base SDK 10.4 and Mac OS X Deployment Target 10.4
but I am hoping to avoid this because the 10.4 SDK is not installed by
default on recent OS'es and also because using the 10.4 SDK requires using
GCC 4.0 which may vanish in the next OS.
Am I stuck with specifying 10.4 for both settings?
Thanks.
Howard Rodstein
WaveMetrics
_______________________________________________
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