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 10:37:10 -0800
On Mar 3, 2010, at 10:31 AM, Sean McBride wrote:
> 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?
Oh, I bet you've run into one of the oldest and weirdest Xcode bugs that we've not been able to fix.
rm ~/Library/Preferences/xcodebuild
See if that does it. Then I'll explain.
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