Re: Linking against something in /Library/Frameworks
Re: Linking against something in /Library/Frameworks
- Subject: Re: Linking against something in /Library/Frameworks
- From: lbland <email@hidden>
- Date: Wed, 1 Feb 2006 13:05:50 -0500
On Feb 1, 2006, at 12:07 PM, Chris Espinosa wrote: /Library/Frameworks is in the implicit framework search paths for both the compiler and the linker. You do not need to add it manually and Xcode does not include it automatically when you add a framework.
I take a new Cocoa application, add a framework (located in /Library/Frameworks) to the project and it does not link. If I also add the search path for the framework to the target search preferences for the Cocoa Application project then it links and runs in xcode.
That didn't use to be that way, but is the case in Xcode 2.2.1 on Mac OS X/Intel (with a clean O.S. and clean project). People using our frameworks for development in Xcode have also reported as such. Ofcourse, there is no such issue like that for the dyld because /Library/Frameworks is in the default search paths, so the apps always run right once deployed.
See:
video to see what I'm talking about. At the end, the guy making the video had to add the Search Path. I'd be interested in knowing why that is.
e.g.: Can I deploy to "/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks" somehow and have Xcode link into the framework without needing to add to the Framework Search Paths?
You can add the framework to that path and if the SDK setting is set correctly Xcode will find it there. Or you can make a copy of the 10.4u SDK in any location, add your framework to its /Library/Frameworks directory, and set the full SDK path to point to your custom SDK root. Or, another way to put it: Is there a provision within Xcode 2.2.1 for third part SDKs?
The short answer to the latter question is "No" but there are ways you can work around it. There is one SDK root and it needs to have the set union of all the vendor SDKs you wish to use, including Apple's base SDK.
I think I would rather add the Search Path in the preferences than muck with the SDKs for Xcode! I think.
thanks!-
-lance
|
_______________________________________________
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