• 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: xcodebuilds fails where Xcode.app succeeds; source tree problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xcodebuilds fails where Xcode.app succeeds; source tree problem


  • Subject: Re: xcodebuilds fails where Xcode.app succeeds; source tree problem
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 3 Mar 2010 09:41:15 -0800

On Mar 3, 2010, at 8:27 AM, Sean McBride wrote:

> I have an Xcode project where several files are referenced by source
> trees.  The project builds fine from Xcode.app.  But with xcodebuild I
> get a compiler error where I #include a file that's referenced relative
> to a source tree.
>
> Why would this happen?
>
> It's a brand new machine, and I've even tried reinstalling Xcode.

If you're running xcodebuild under sudo, it runs as the root user (uid 0), and uses root's user preferences which is where source trees are stored.

You can fake it out by specifying the source tree on the command line, e.g. SOURCE_TREE="Macintosh\ HD/OtherSources" sudo xcodebuild -configuration Release etc. etc.

Chris _______________________________________________
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: xcodebuilds fails where Xcode.app succeeds; source tree problem
      • From: "Sean McBride" <email@hidden>
References: 
 >xcodebuilds fails where Xcode.app succeeds; source tree problem (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: "-Wno-import" does not suppress "#import is a GCC extension" warnings
  • Next by Date: Re: "-Wno-import" does not suppress "#import is a GCC extension" warnings
  • Previous by thread: xcodebuilds fails where Xcode.app succeeds; source tree problem
  • Next by thread: Re: xcodebuilds fails where Xcode.app succeeds; source tree problem
  • Index(es):
    • Date
    • Thread