• 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: build for 10.3.9 with Xcode 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build for 10.3.9 with Xcode 3.0


  • Subject: Re: build for 10.3.9 with Xcode 3.0
  • From: "Drew Colace" <email@hidden>
  • Date: Fri, 16 Nov 2007 16:17:06 -0800

No.  MACOSX_DEPLOYMENT_TARGET sets the lower bound for acceptable OS to
run on whereas SDKROOT(_ppc or _i386) sets the upper bound of which
AppKit, Foundation, etc. calls can be made, provisionally.

>Shouldn't you be using
>SDKROOT_ppc= $(DEVELOPER_SDK_DIR)/MacOSX10.3.9.sdk
>
>
>On Nov 16, 2007, at 12:52 PM, Drew Colace wrote:
>
>> I've been struggling with this problem as well for the past few days.
>> The only difference for me is the symbol in Foundation that is not
>> found
>> (.objc_class_name_NSXMLDocument)
>>
>> I set my flags the target level to:
>>
>> MACOSX_DEPLOYMENT_TARGET_ppc = 10.3
>> MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
>>
>> MACOSX_DEPLOYMENT_TARGET is blank (compiler default)
>>
>> SDKROOT_ppc = $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk
>> SDKROOT_i386 = $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk
>>
>> (I know I can condense this, but it will make it easier for me in the
>> future if I need to diverge the SDKROOTs.)
>>
>> I was very hopeful with Michael Watson's suggestion to turn off fast
>> dispatch (since this was, in fact, enabled) but that has not yet
>> resolved the problem.
>>
>> I have even gone so far as to add -weak_framework Foundation to Other
>> Linker Flags; doing this, otool shows:
>>
>>          cmd LC_LOAD_WEAK_DYLIB
>>      cmdsize 96
>>         name /System/Library/Frameworks/Foundation.framework/
>> Versions/C/
>> Foundation (offset 24)
>>   time stamp 2 Wed Dec 31 16:00:02 1969
>>      current version 677.0.0
>> compatibility version 300.0.0
>>
>> (this was running otool on 10.4.11)
>>
>> correct Framework Version and compatibility version looks good but
>> still
>> no joy.  I'm really struggling for an answer here.
>>
>> I'm using gcc 4 for both ppc and intel builds.  I read on another
>> thread
>> that if one is using Objective C++/C++ that it may be necessary to
>> compile ppc using gcc 3.3.  (I tried but I'm getting all sorts of
>> problems just compiling with gcc 3.3.)  Can anyone confirm or deny
>> that
>> 3.3 is would be necessary if targeting 10.3.9 when compiling Obj-C++/
>> C++?
>>
>> Thanks!
>>
>>>> It really does seem to be broken.
>>>>
>>>> With a project set up as follows:
>>>>
>>>>> MACOSX_DEPLOYMENT_TARGET = 10.4;
>>>>> MACOSX_DEPLOYMENT_TARGET_ppc = 10.3;
>>>>> SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
>>>>
>>>>
>>>> and building Universal, the build logs show...
>>>>
>>>>> /Developer/usr/bin/distcc /Developer/usr/bin/gcc-4.0 -arch ppc -
>>>>> mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>>>>> [...]
>>>>>
>>>>> /Developer/usr/bin/g++-4.0 [...] -framework Carbon -framework Cocoa
>>>>> -framework WebKit -arch ppc -mmacosx-version-min=10.3 -Wl,-
>>>>> dead_strip -Wl,-x -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>>>>
>>>>
>>>>> /Developer/usr/bin/distcc /Developer/usr/bin/gcc-4.0 -arch i386 -
>>>>> mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>>>>> [...]
>>>>>
>>>>> /Developer/usr/bin/g++-4.0 [...] -framework Carbon -framework Cocoa
>>>>> -framework WebKit -arch i386 -mmacosx-version-min=10.4 -Wl,-
>>>>> dead_strip -Wl,-x -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>>>>
>>>>
>>>> finally at execution time on Mac OS X 10.3.9, the following crash
>>>> log results:
>>>>
>>>>> Link (dyld) error:
>>>>>
>>>>> dyld: MyApp Undefined symbols:
>>>>> MyApp undefined reference to .objc_class_name_NSAffineTransform
>>>>> expected to be defined in Foundation
>>>>
>>>>
>>>> So is this a bug or User Error? Looks pretty dire to me.
>>>>
>>>> Same project, same build machine running Leopard but with Xcode 2.5,
>>>> all is well.
>>
>> _______________________________________________
>> 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
>>
>


 _______________________________________________
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: build for 10.3.9 with Xcode 3.0
      • From: Chris Hanson <email@hidden>
References: 
 >Re: build for 10.3.9 with Xcode 3.0 (From: "Drew Colace" <email@hidden>)

  • Prev by Date: Re: build for 10.3.9 with Xcode 3.0
  • Next by Date: Re: Breakpoints doesn't work - more info
  • Previous by thread: Re: build for 10.3.9 with Xcode 3.0
  • Next by thread: Re: build for 10.3.9 with Xcode 3.0
  • Index(es):
    • Date
    • Thread