• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: executables for OSX 10.4 vs 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/Introduction/chapter_1_section_1.html

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

References: 
 >executables for OSX 10.4 vs 10.5 (From: "Michael Williamson" <email@hidden>)

  • Prev by Date: Re: executables for OSX 10.4 vs 10.5
  • Next by Date: Adding debug/release dylib to respective Configurations in XCode.
  • Previous by thread: Re: executables for OSX 10.4 vs 10.5
  • Next by thread: Re: executables for OSX 10.4 vs 10.5
  • Index(es):
    • Date
    • Thread