Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MayPeng

macrumors member
Original poster
Nov 21, 2010
53
0
When I start a new project in Xcode 3.2.3 on mac os 10.6.6 , what are the steps I need to do to ensure that the resulting code will work under MacOS X 10.4 or 10.5? What settings in the project do I need to alter?

Example:
Base SDK: Mac os x 10.6 (the latest sdk version on the current os)
Mac os x Deployment Target: Mac os x 10.4
But i don't know whether it is right?

Many thanks.
 
What you have so far is correct. You must also use GCC as the compiler, not LLVM, if you want to support Mac OS X 10.4. To be safe, set the compiler version to GCC 4.0. I am not sure if code compiled with GCC 4.2 will run on 10.4.

You must also be sure not to use any code or technologies introduced in Mac OS X 10.5 or 10.6 if you want your code to run on 10.4.
 
[...]
You must also be sure not to use any code or technologies introduced in Mac OS X 10.5 or 10.6 if you want your code to run on 10.4.

That's important. Afaik, the compiler doesn't warn you when you're using methods that are incompatible with previous OS versions, so you'll have to consult the documentation.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.