• 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: 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

  • 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: C++ code compiles with libstdc++ but not libc++
  • Next by Date: Source trees and other drives?
  • 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