Mac os x Deployment Target

Discussion in 'Mac Programming' started by MayPeng, Mar 17, 2011.

  1. MayPeng macrumors member

    Joined:
    Nov 21, 2010
    #1
    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.
     
  2. szymczyk macrumors regular

    Joined:
    Mar 5, 2006
    #2
    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.
     
  3. (marc) macrumors 6502a

    (marc)

    Joined:
    Sep 15, 2010
    Location:
    the woods
    #3
    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.
     

Share This Page