Re: SDK number and system version.
Re: SDK number and system version.
- Subject: Re: SDK number and system version.
- From: Scott Tooker <email@hidden>
- Date: Mon, 28 May 2007 12:40:10 -0700
On May 28, 2007, at 8:24 AM, James Bucanek wrote:
Sylvain Rondeau <mailto:email@hidden> wrote (Monday, May
28, 2007 7:35 AM +0200):
In my application, I check the system version number in order to
inform the user if is system is too old tu run it. if I link the
executable (ppc part) with the system SDK named : MacOSX10.3.9.sdk,
do
I need to check if the host system revision is >= 10.3 or >= 10.3.9 ?
What kind of application are you building? If it's an application
bundle with an Info.plist, all you have to do is set the "Mac OS X
Deployment Target" property to the desired value, and the operating
system will do this checking for you.
By default "Mac OS X Deployment Target" is set to "Compiler
Default," which means that is it set to the version of the SDK you
linked to. So if you linked to the 10.3 SDK, the operating system
will refuse to load the application on any OS earlier than 10.3.
This is partially incorrect, though I can see why you might think
that. It is true that Xcode will go ahead and pass the proper Mac OS X
Deployment Target if you are using an SDK.
However, the actual default behavior of the compiler is more
complicated. For the 32-bit cases, the PowerPC side defaults to 10.1
and the Intel side defaults to 10.4. For 64-bit I believe the default
is 10.4.
It's a bug that Xcode doesn't properly reflect this in the UI (we
shouldn't show Compiler Default, since an actual value is getting
passed down).
Keep in mind that "Mac OS X Deployment Target" represents the minimum
major OS version that your executable will run on, and the SDK points
to the API that your executable will target. So the SDK doesn't itself
indicate the minimum system that you can run on, but instead indicates
the latest API that is available.
Scott
James Bucanek
____________________________________________________________________
Author of Beginning Xcode ISBN: 047175479X
<http://www.beginningxcode.com/>
_______________________________________________
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
_______________________________________________
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