• 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: Stephen Kay <email@hidden>
  • Date: Wed, 03 Oct 2012 01:42:46 -0400
  • Thread-topic: Xcode's default project layout causes $SRCROOT to be wrong.

on 10/2/12 8:50 PM, Gavin Stokes at email@hidden wrote:

> We were having trouble getting the compiler to find some headers.  I
> realized that it's because Xcode is putting the xcodeproj file outside
> the directory that contains the source.  It appears to derive $SRCROOT
> from the project file's location.

AFAIK, that's precisely what it does. $SRCROOT is the directory that
contains the project.

If you want to go up a level, as in your example, use ${SRCROOT}/../

- Stephen

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Stephen Kay
Karma-Lab :: developers of KARMA
http://www.karma-lab.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



 _______________________________________________
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

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

  • Prev by Date: Re: Custom Target in Xcode?
  • Next by Date: Re: Custom Target in Xcode?
  • Previous by thread: 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