| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
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 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: http://lists.apple.com/mailman/options/xcode-users/email@hidden 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>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.