• 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: Xcode's default project layout causes $SRCROOT to be wrong.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Xcode's default project layout causes $SRCROOT to be wrong. (From: Gavin Stokes <email@hidden>)
 >Re: Xcode's default project layout causes $SRCROOT to be wrong. (From: Stephen Kay <email@hidden>)
 >Re: Xcode's default project layout causes $SRCROOT to be wrong. (From: Gavin Stokes <email@hidden>)

  • Prev by Date: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • Next by Date: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • Previous by thread: Re: Xcode's default project layout causes $SRCROOT to be wrong.
  • Next by thread: Re: Xcode's default project layout causes $SRCROOT to be wrong.
  • Index(es):
    • Date
    • Thread