Re: xcodebuilds fails where Xcode.app succeeds; source tree problem
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