• 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
Re: SDKs and framework paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SDKs and framework paths


  • Subject: Re: SDKs and framework paths
  • From: email@hidden
  • Date: Sun, 2 Dec 2007 19:14:45 -0500

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
  • Follow-Ups:
    • Re: SDKs and framework paths
      • From: Kai BrĂ¼ning <email@hidden>
  • Prev by Date: Running app from Organizer under debugger with shell vars
  • Next by Date: Re: Argghh include quirks
  • Previous by thread: SDKs and framework paths
  • Next by thread: Re: SDKs and framework paths
  • Index(es):
    • Date
    • Thread