• 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
Library and framework files in projects - does the "Full Path" information ever get used?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Library and framework files in projects - does the "Full Path" information ever get used?


  • Subject: Library and framework files in projects - does the "Full Path" information ever get used?
  • From: "Roger James" <email@hidden>
  • Date: Fri, 30 May 2008 10:23:10 +0100

I will prefix this question with my usual “I may be missing something absolutely obvious here”.

 

If I add a library file or framework to an Xcode project using the normal “Add existing” methods then an entry is created which appears to hold knowledge of how to create the absolute path to the file. This can be seen by doing a “Get Info” on the entry. If I then add this entry to a target, either via the targets pane of the entries “Get Info” or via drag and drop, it gets added to the “Link Binary with libraries” build phase of the target. However it appears that only the leaf portion of the path is ever used, this can be verified by looking at the build log. If the file is in a non standard directory you have to add that directory to “Library Search Paths” or “Framework Search Paths” in order for the linker to find the file.

 

This is somewhat non intuitive but potentially very useful behaviour, but it can lead the unwary into deep waters, especially if a library with the same leaf name exists elsewhere on the full list of search paths.

 

However my real question is: can this behaviour be relied upon? i.e. Is it always the case, or are there cases where an absolute path if used? If so, how is the behaviour controlled?

 

RTFM pointers gratefully accepted J.

 

Thanks,

 

Roger

 _______________________________________________
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: Library and framework files in projects - does the "Full Path"information ever get used?
      • From: "Roger James" <email@hidden>
  • Prev by Date: Re: Novice Question
  • Next by Date: Re: dyld: library not loaded
  • Previous by thread: Re: Novice Question
  • Next by thread: RE: Library and framework files in projects - does the "Full Path"information ever get used?
  • Index(es):
    • Date
    • Thread