Re: SDKs and framework paths
Re: SDKs and framework paths
- Subject: Re: SDKs and framework paths
- From: Kai BrĂ¼ning <email@hidden>
- Date: Thu, 6 Dec 2007 10:19:57 +0100
Thanks a lot, this solves it. I filed rdar://5630144 about missing documentation in the Cross-Development Programming Guide.
Kai
>On Dec 2, 2007, at 1:35 PM, Kai BrĂ¼ning wrote:
>
>>My understanding is that the chosen SDK for a project is supposed to which variant of an OS-supplied framework is used. But when including frameworks in an Xcode project, the project also remembers a path to the framework (as to any other item added to a project). And as far as I can see, this path can not be SDK-relative. As a result, I have to update the paths to all frameworks when changing the SDK.
>>
>>Is this by design? Or am I overlooking something?
>>
>
>It sounds like you are adding frameworks by specifying the framework in the /Developer/SDKs/.../System/Library/Frameworks directory. If so, don't do that. Add the framework by locating it in /System/Library/Framework. When you define an SDK at the project level, that causes Xcode to pass the -isysroot flag to the compiler which makes the effective path for linking the /Developer/SDKs... path.
>
>>As an aside, I do not really understand the relationship between the above mentioned paths to frameworks saved in projects and the "framework search path" specified in build settings.
>>
>
>Frameworks are specified by name, such as -framework Foundation. /System/Library/Frameworks and /Libary/Frameworks are searched by default. If you have frameworks in other locations, perhaps from a third-party or a different project, you can add the path to the directory containing the framework to "framework search path", then the linker will find the framework when specified by name.
>
>You can see the results of setting these options by looking at the detailed build transcript. There is a button at the bottom of the Build Results that reveals the transcript. In there, you can find the full command that is being passed to gcc, for example.
>
>Aaron Burghardt
_______________________________________________
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