• 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: 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]

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


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

One thing I got wrong in this question is that Xcode itself adds an entry to the relevant Search Paths build variable. I missed this because I had modified the variable myself to experiment with different libraries for debug and release builds. But just to confuse people it seems that it only does this if you drag and drop the library onto the link binaries phase of a target, not if you select the target in the targets panel of the libraries info. I have not checked whether the search paths stuff gets modified if the targets pane if used whilst a libraries entry is being created via add file to project.

 

Can anyone point me at some decent documentation on this? I am getting tried of finding things documented in obscure documents and release notes. Ah well – nothing changes J

 

Roger

 


From: xcode-users-bounces+roger.james=email@hidden [mailto:xcode-users-bounces+roger.james=email@hidden] On Behalf Of Roger James
Sent: 30 May 2008 10:23
To: email@hidden
Subject: Library and framework files in projects - does the "Full Path"information ever get used?

 

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

References: 
 >Library and framework files in projects - does the "Full Path" information ever get used? (From: "Roger James" <email@hidden>)

  • Prev by Date: Re: What?
  • Next by Date: Re: What?
  • Previous by thread: Library and framework files in projects - does the "Full Path" information ever get used?
  • Next by thread: How to rename project.
  • Index(es):
    • Date
    • Thread