Re: Absolute Paths
Re: Absolute Paths
- Subject: Re: Absolute Paths
- From: Christiaan Hofman <email@hidden>
- Date: Mon, 2 Aug 2010 22:29:26 +0200
On Aug 2, 2010, at 19:25, Shawn Erickson wrote:
> On Sat, Jul 31, 2010 at 3:50 PM, Chris Suter <email@hidden> wrote:
>> Hi David,
>>
>> On Sun, Aug 1, 2010 at 8:34 AM, David Blanton <email@hidden> wrote:
>>>
>>> Was it ever correct, i.e. earlier XCode versions? For what version of
>>> Xcode are relative paths supported?
>>
>> All versions; it's always worked. You're doing something wrong. Paths can be
>> specified relative to the project root. If you want further help, you'll
>> have to tell us what's going wrong. Try creating a project from scratch and
>> comparing it to what you have.
>> You need to be careful to quote some paths in Xcode in cases where the paths
>> have spaces in them, but I don't believe that's the case for any of the
>> settings you mentioned.
>
> Well one change I noticed in recent versions of Xcode is the loss of
> support for relative paths in build settings.
>
That may well be. But it has nothing to do with what you were talking about before. And AFAIK most build settings (including SYMROOT) were always supposed to be absolute paths, even though Xcode may have completed them in earlier versions. For instance, the only place in the build setting reference that seems to allow relative paths is USER_HEADER_SEARCH_PATHS.
Christiaan
> For example I used to have in my xcconfig files...
>
> COL_BRANCH_ROOT = ../..
>
> ...which was used to populate the following...
>
> COL_OUTPUT_PATH = $(COL_BRANCH_ROOT)/$(COL_OUTPUT)
> COL_OUTPUT_INTERMEDIATES_PATH = $(COL_OUTPUT_PATH)/$(COL_OUTPUT_INTERMEDIATES)
> SYMROOT = $(COL_OUTPUT_PATH)
> OBJROOT = $(COL_OUTPUT_INTERMEDIATES_PATH)
>
> I now have to use...
>
> COL_BRANCH_ROOT = $(PROJECT_DIR)/../..
>
> ...to avoid a runtime exception that takes down Xcode (well maybe it
> was just a tool behind Xcode that died... need to reproduce it again
> to recall).
>
> -Shawn
> _______________________________________________
> 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
_______________________________________________
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