Re: libsystem compatability from os 10.2 to 10.4
Re: libsystem compatability from os 10.2 to 10.4
- Subject: Re: libsystem compatability from os 10.2 to 10.4
- From: Shawn Erickson <email@hidden>
- Date: Tue, 27 Feb 2007 23:51:00 -0800
On Feb 27, 2007, at 10:03 PM, Chris Hanson wrote:
On Feb 27, 2007, at 7:58 AM, Shawn Erickson wrote:
I suggest you set the SDK to the version of OS that you want to be
able to use API from (say 10.4). As needed you can temporarily
specify the max OS version to be 10.2
(MAC_OS_X_VERSION_MAX_ALLOWED) to cause the availability macros to
complain about usage of post 10.2 API so that you can make sure
you are doing the correct runtime checks.
There are three fairly simple mappings that describe what the
original poster wants to do. As with memory management, please
don't derive your own rules of thumb.
Why I linked the relevant docs on this topic...
In particular, please do not shortcut the build settings and modify
the AvailabilityMacros directly.
I wasn't trying to imply that one should do that... however the last
sentence in my prior email is incorrect. I was misremembering how I
was quickly toggling min/max OS version last year when I was trying
to validate the 10.3.9 and later code I was working on was correctly
doing runtime checks and min/max target ifdefs of code blocks. I was
actually specifying MACOSX_DEPLOYMENT_TARGET and/or SDKROOT on the
command line to xcodebuild to temporarily override the project
settings... it wasn't MAC_OS_X_VERSION_MAX_ALLOWED (however I was
using MAC_OS_X_VERSION_MAX_ALLOWED in ifdefs). Sorry for any confusion.
The main point I was trying to make is that using the 10.2.8 SDK is
not required for code to function on 10.2.8.
-Shawn
_______________________________________________
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