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

Re: SDKROOT & MACOSX_DEPLOYMENT_TARGET


  • Subject: Re: SDKROOT & MACOSX_DEPLOYMENT_TARGET
  • From: Eric Gorr <email@hidden>
  • Date: Wed, 25 Aug 2010 10:30:56 -0400

On Aug 25, 2010, at 3:27 AM, Ken Thomases wrote:

On Aug 24, 2010, at 3:53 PM, Eric Gorr wrote:

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.

Show the commands Xcode is using to build your library.

There is a sample project at:

http://ericgorr.net/cocoadev/SDKROOT.zip

which reproduces the part of the problem where nm returns an error under 10.5, but not 10.6. That error again is:

nm: object: /Volumes/Glamdring/Users/egorr/Desktop/SDKROOT/build/Debug/SDKROOTLib.bundle/Contents/MacOS/SDKROOTLib malformed object (unknown load command 4)

Under, 10.6, nm correctly returns:

~ $nm  /Volumes/Glamdring/Users/egorr/Desktop/SDKROOT/build/Debug/SDKROOTLib.bundle/Contents/MacOS/SDKROOTLib
00000efc s  stub helpers
00000e4e T __Z17PluginLibraryMainl
         U ___gxx_personality_v0
00000e40 t __dyld_func_lookup
00000000 t __mh_bundle_header
00000e86 T _plugin_main
         U _printf
         U dyld_stub_binder
00000e1c t dyld_stub_binding_helper

It seems to me that nm should be returning the same results under both 10.5 and 10.6. Is this not correct?

I have not been able to reproduce(yet) the other part of the problem where

functionPtr = CFBundleGetFunctionPointerForName( bundleLibrary, CFSTR( "plugin_main" ) );

returns NULL, but I am still working on it.


 
 _______________________________________________
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: Eric Gorr <email@hidden>
References: 
 >SDKROOT & MACOSX_DEPLOYMENT_TARGET (From: Eric Gorr <email@hidden>)
 >Re: SDKROOT & MACOSX_DEPLOYMENT_TARGET (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: SDKROOT & MACOSX_DEPLOYMENT_TARGET
  • Next by Date: Using the debugger and instruments at the same time?
  • Previous by thread: Re: SDKROOT & MACOSX_DEPLOYMENT_TARGET
  • Next by thread: Re: SDKROOT & MACOSX_DEPLOYMENT_TARGET
  • Index(es):
    • Date
    • Thread