Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking against something in /Library/Frameworks



On Feb 1, 2006, at 6:17 AM, lbland wrote:

We developed a framework and put it in:

/Library/Frameworks

for deployment.


When I make an application linked against that (deployed) framework I add the framework to the project, but Xcode does not update the "Framework Search Paths" to include "/Library/Frameworks", so I have to update the search path manually after adding the framework to the project.


In a previous version of Xcode (I think 2.0) I recall Xcode updating the Framework Search Path automatically according to the Framework added. But now it does not seem to do that.


Is adding "/Library/Frameworks" to the "Framework Search Paths" the right thing to do? Or is there some new SDK-oriented way to do it?


/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.

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.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Linking against something in /Library/Frameworks (From: lbland <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.