• 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
SDKROOT & MACOSX_DEPLOYMENT_TARGET
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SDKROOT & MACOSX_DEPLOYMENT_TARGET


  • Subject: SDKROOT & MACOSX_DEPLOYMENT_TARGET
  • From: Eric Gorr <email@hidden>
  • Date: Tue, 24 Aug 2010 16:53:11 -0400

The documentation at:

http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html#//apple_ref/doc/uid/10000163i-CH1-SW2

seems clear – set the SDKROOT to the latest version of the OS on which you want to run and the MACOSX_DEPLOYMENT_TARGET to the earliest version of the OS on which you want to run.

So, I want to set the SDKROOT to be the 10.6 SDK and the Deployment Target to be Mac OS X 10.5.

However, I think I must be missing something. When I build a library with these settings and then use nm to see what symbols are in the library, nm will correctly output the symbols under 10.6, but not under 10.5.

When I execute nm under 10.5, I gett the following error:

nm: object: /Path/To/MyLib.mylib/Contents/MacOS/MyLib malformed object (unknown load command 4)

So, it seems clear that it is not getting built in the way I expected it to be built.

Any idea on what might be going wrong?

Thank you.



 _______________________________________________
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: SDKROOT & MACOSX_DEPLOYMENT_TARGET
      • From: Ken Thomases <email@hidden>
    • Re: SDKROOT & MACOSX_DEPLOYMENT_TARGET
      • From: Carlos McEvilly <email@hidden>
  • Prev by Date: Re: Previous Versions of OS X
  • Next by Date: Re: SDKROOT & MACOSX_DEPLOYMENT_TARGET
  • Previous by thread: Re: Background applications with iOS 4.0
  • Next by thread: Re: SDKROOT & MACOSX_DEPLOYMENT_TARGET
  • Index(es):
    • Date
    • Thread