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: email@hidden
- Date: Wed, 03 Oct 2012 12:34:42 +0000
- Importance: Normal
- Sensitivity: Normal
I think it is to support multiple targets.
Sent from my Verizon Wireless BlackBerry
-----Original Message-----
From: Gavin Stokes <email@hidden>
Sender: xcode-users-bounces+zav=email@hiddente: Tue, 02 Oct 2012 17:50:52
To: xcode-Users List<email@hidden>
Subject: Xcode's default project layout causes $SRCROOT to be wrong.
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.
This is what you get when you generate a new project:
TestProject
TestProject
appDelegate.h
appDelegate.m
other stuff
TestProject.xcodeproj
So in build settings, $SRCROOT is resolved to
/volumes/something/TestProject, when in fact it should be
/volumes/something/TestProject/TestProject.
So you end up having to manually add /TestProject to every search path.
Can anyone shed some light on this design? Thanks!
Gavin
_______________________________________________
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