Re: Xcode's default project layout causes $SRCROOT to be wrong.
Re: Xcode's default project layout causes $SRCROOT to be wrong.
- Subject: Re: Xcode's default project layout causes $SRCROOT to be wrong.
- From: Quincey Morris <email@hidden>
- Date: Wed, 03 Oct 2012 11:00:38 -0700
On Oct 3, 2012, at 10:33 , Gavin Stokes <email@hidden> wrote:
> Xcode is now putting the project
> file ABOVE the source directory.
>
> I didn't see this behavior before Xcode 4.x (not sure when it changed).
Xcode's behavior hasn't changed. $SRCROOT always pointed to the directory containing the project file. It can't point to "the" source directory because it's not a well-defined concept -- every source file in a project might be in a different directory.
What might have changed is the file arrangement in the new project templates in different Xcode releases. It's useful (in a common scenario) to have the source file locations to be relative to the project file (so that moving the project folder moves everything and doesn't break the relative links), but to be pushed "down" one directory level so that the project file isn't buried in with source files. The templates have gradually moved towards this arrangement over the years.
_______________________________________________
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