• 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
How to link with alternate Foundation.framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to link with alternate Foundation.framework


  • Subject: How to link with alternate Foundation.framework
  • From: Stuart Malin <email@hidden>
  • Date: Tue, 20 Jan 2009 11:44:33 -1000

I know my query is unusual, but I need to link an alternate Foundation.framework with my code.

Background:  I am working with The Cocotron so that I can cross-compile some Cocoa/Objective-C to Windows. The Cocotron has its own Foundation framework. I want to do some debugging of The Cocotron's Foundation code on my Mac, and so want to link that framework to my code. I am having trouble doing this.  I have generated a Darwin i386 Foundation framework that is located in
/Developer/Cocotron/1.0/Darwin/i386/Frameworks

What I have done is to create a Foundation Tool. I removed the existing Foundation.framework from the External Frameworks and Libraries folder in Groups & Files. I then added my Cocotron version of Foundation.framework. So that it would be linked in, I included this in the Target Memberships for my Foundation Tool.

In the Build Settings for the target, I have set:

Frameworks Search Paths to the location of The Cocotron frameworks
(/Developer/Cocotron/1.0/Darwin/i386/Frameworks)

However, when I execute my Foundation Tool, I don't believe that it is linked in with the Cocotron version of the framework.  Am I doing all that I need to do in order to have a different Foundation.framework  be linked?

I know this is an unconventional use of Xcode, but would appreciate any help that can be directed my way.
TIA,
--Stuart

Here is log of my build:

CompileC build/FoundationTool.build/Debug/FoundationTool.build/Objects-normal/i386/FoundationTool.o /Users/stuart/Programming/Cocotron/MyApps/FoundationTool/FoundationTool.m normal i386 objective-c com.apple.compilers.gcc.4_0
    cd /Users/stuart/Programming/Cocotron/MyApps/FoundationTool
    /Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/FoundationTool.build/Debug/FoundationTool.build/FoundationTool-generated-files.hmap -I/Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/FoundationTool.build/Debug/FoundationTool.build/FoundationTool-own-target-headers.hmap -I/Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/FoundationTool.build/Debug/FoundationTool.build/FoundationTool-all-target-headers.hmap -iquote /Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/FoundationTool.build/Debug/FoundationTool.build/FoundationTool-project-headers.hmap -F/Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/Debug -F/Developer/Cocotron/1.0/Darwin/i386/Frameworks -I/Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/Debug/include -I/Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/FoundationTool.build/Debug/FoundationTool.build/DerivedSources -include /var/folders/UP/UPMrfkHVH7ywij2BVq8KiE+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/FoundationTool_Prefix-cxzccsrzqvogzmgrvsufrganqqlu/FoundationTool_Prefix.pch -c /Users/stuart/Programming/Cocotron/MyApps/FoundationTool/FoundationTool.m -o /Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/FoundationTool.build/Debug/FoundationTool.build/Objects-normal/i386/FoundationTool.o

Ld /Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/Debug/FoundationTool normal i386
    cd /Users/stuart/Programming/Cocotron/MyApps/FoundationTool
    /Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/Debug -F/Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/Debug -F/Developer/Cocotron/1.0/Darwin/i386/Frameworks -filelist /Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/FoundationTool.build/Debug/FoundationTool.build/Objects-normal/i386/FoundationTool.LinkFileList -mmacosx-version-min=10.5 -framework Foundation -o /Users/stuart/Programming/Cocotron/MyApps/FoundationTool/build/Debug/FoundationTool



 _______________________________________________
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: How to link with alternate Foundation.framework
      • From: Chris Espinosa <email@hidden>
    • Re: How to link with alternate Foundation.framework
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: OT: Which MacBook Pro to buy
  • Next by Date: Cannot save a file after comparing it with repository
  • Previous by thread: Re: MainWindow.nib Cannot be saved
  • Next by thread: Re: How to link with alternate Foundation.framework
  • Index(es):
    • Date
    • Thread