• 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: Cross OS version UB development
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross OS version UB development


  • Subject: Re: Cross OS version UB development
  • From: Shawn Erickson <email@hidden>
  • Date: Sat, 24 Feb 2007 09:14:40 -0800


On Feb 24, 2007, at 9:03 AM, John Daniel wrote:


On Feb 24, 2007, at 10:44 AM, Shawn Erickson wrote:


On Feb 24, 2007, at 8:31 AM, John Daniel wrote:

On Feb 24, 2007, at 9:52 AM, Theodore H. Smith wrote:

Hi people,

What's the earliest OS I can cross compile for OS versions? Right now I'm using these settings.

SDKROOT = /Developer/SDKs/MacOSX10.3.9.sdk
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk

Now, what if I wanted to let PPC users run my library on MacOS 10.2? Is this possible? Whats the earliest OS I can cross compile for? I'd rather know than test it out for myself because I don't actually have MacOS10.2 or 10.1 or 10.0 installed.

It is probably safer to create two targets in your project, one for Intel only (using 10.4) and one for PPC (10.2) and meld them together using lipo in a 3rd target that has only a run script build phase.

Why? Xcode supports building a UB directly for you (by default Release configuration does this while Debug only build the platform you are running on). You don't need to make it harder on yourself. This capability works fine so I suggest you use it.

Because I'm not an Xcode wizard.

You don't have to be.

It is all documented and discoverable in Apple's online documentation and via Xcode documentation feature. Personally I try never to use a feature without taking 10 minutes to review relevant documentation... doing so you often can avoid doing extra work that may not be needed.

For example a section of the document that discusses cross development fully covers this capability.

<http://developer.apple.com/documentation/DeveloperTools/Conceptual/ cross_development/UniversalBinaries/chapter_4_section_1.html>

...or if you come at this from the Universal Binary Programming Guide you see the following note in a little callout box and links to the above...

"Note: Xcode has per-architecture SDK support. For example, you can target Mac OS X versions 10.3 and 10.4 for PowerPC while also targeting Mac OS X v10.4 and later for Intel-based Macintosh computers."

-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


  • Follow-Ups:
    • Re: Cross OS version UB development
      • From: "Alexander v. Below" <email@hidden>
References: 
 >Cross OS version UB development (From: "Theodore H. Smith" <email@hidden>)
 >Re: Cross OS version UB development (From: John Daniel <email@hidden>)
 >Re: Cross OS version UB development (From: Shawn Erickson <email@hidden>)
 >Re: Cross OS version UB development (From: John Daniel <email@hidden>)

  • Prev by Date: Re: Cross OS version UB development
  • Next by Date: Re: Cross OS version UB development
  • Previous by thread: Re: Cross OS version UB development
  • Next by thread: Re: Cross OS version UB development
  • Index(es):
    • Date
    • Thread