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: "Sean McBride" <email@hidden>
- Date: Wed, 3 Mar 2010 13:31:46 -0500
- Organization: Rogue Research Inc.
On 3/3/10 9:41 AM, Chris Espinosa said:
>
>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,
Thanks for the quick reply.
Alas, we are not running xcodebuild under sudo. Just a regular (admin)
user. This is working on every other machine in the office, just not
this new one.
I've tried doing:
SOURCE_TREE_NAME="path/to/folder" xcodebuild etc etc
and this succeeds. So I guess xcodebuild is unable to read my defaults
or something?
I've also compared 'defaults read com.apple.xcode' with other machines
where it works and don't see anything weird.
Any other suggestions?
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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