Re: How to link with alternate Foundation.framework
Re: How to link with alternate Foundation.framework
- Subject: Re: How to link with alternate Foundation.framework
- From: Chris Espinosa <email@hidden>
- Date: Tue, 20 Jan 2009 22:47:20 -0500
On Jan 20, 2009, at 4:44 PM, Stuart Malin wrote:
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.
This is not at all unusual; teams inside Apple use Xcode to build new
versions of frameworks on a daily basis.
All you need to do is to use a common build folder between the project
that builds your replacement Foundation.framework and your project
that uses it. Xcode automatically looks in the build folder to
compile and link against self-built frameworks. You don't have to
(and shouldn't) do anything to /System/Library/Frameworks.
Just make sure that you have configuration and architecture coherency
between the Foundation build and your project.
Chris
_______________________________________________
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