• 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: Universal Binaries for an app built with different SDK versions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Universal Binaries for an app built with different SDK versions


  • Subject: Re: Universal Binaries for an app built with different SDK versions
  • From: Chris Forsythe <email@hidden>
  • Date: Thu, 12 Jan 2006 19:08:57 -0600

Steve Bennett wrote:

What I'd *really* like to make a universal binary of these elements, where
the PPC version is built with the older SDKs and compiler, and the Intel
version built with the universal SDK and new compiler.


So below I've pasted some of the steps I've been writing up for doing something similar (albeit I don't really support anything below 10.3, so eh). Hope it helps. Some of this was pointed out to me by Evan Schoenburg from the Adium project, all of it should be derived from the UB docs.


Chris


Steps to making ub on an existing project

1) Launch Xcode

2) Get info on the main project

3) Go to build tab

4) Ensure it is on the All Configurations drop down selection for Configurations, and Collection is set to All Settings

5) Search for Architectures, edit this setting, and select both PPC and Intel

6) Try to build in Deployment or Release. Leave the inspector window for the main project open.

7) You will see a new error for Undefined symbols. This is because you are not linking to the 10.4u framework.

8) SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk needs to be put in.

9) If you plan to support or even just not crash on 10.2, you need to set all of these things:

ARCHS = ppc i386
SEPARATE_STRIP = YES
GCC_VERSION_i386 = 4.0
GCC_VERSION_ppc = 3.3
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
MACOSX_DEPLOYMENT_TARGET_ppc = 10.2
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
SDKROOT_ppc = /Developer/SDKs/MacOSX10.2.8.sdk

The only settings you do not need to add is ARCHS and SEPARATE_STRIP. Everything else needs to be manually added.
_______________________________________________
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: Universal Binaries for an app built with different SDK versions
      • From: Alexander von Below <email@hidden>
References: 
 >Universal Binaries for an app built with different SDK versions (From: Steve Bennett <email@hidden>)

  • Prev by Date: Universal Binaries for an app built with different SDK versions
  • Next by Date: Re: Universal Binaries for an app built with different SDK versions
  • Previous by thread: Universal Binaries for an app built with different SDK versions
  • Next by thread: Re: Universal Binaries for an app built with different SDK versions
  • Index(es):
    • Date
    • Thread