Re: executables for OSX 10.4 vs 10.5
Re: executables for OSX 10.4 vs 10.5
- Subject: Re: executables for OSX 10.4 vs 10.5
- From: Chris Hanson <email@hidden>
- Date: Tue, 14 Oct 2008 18:16:59 -0700
On Oct 14, 2008, at 5:10 PM, Michael Williamson wrote: A simple Q from a newcomer to mac development: I want to build my application to run on OSX 10.4 and 10.5 (with XCode).
Do I need to build separate executables, selecting the relevant SDK for each?
No. Or is there some way to build a single app that runs on both and if so are there any drawbacks to doing this?
Yes. Set the "Mac OS X Deployment Target" build setting in your application target to 10.4, and any API symbols introduced in 10.5 will be weak-linked and NULL at run time on 10.4 systems.
There are some limitations on using Objective-C classes that are new in 10.5 in code that needs to run on 10.4; this is addressed in the Cross-Development Programming Guide.
Cross-Development Programming Guide
The important thing to remember is that the SDK defines the most recent operating system you want to use features from, while the Deployment Target defines the least recent operating system on which you want to run.
-- Chris
|
_______________________________________________
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