Running xcodebuild as macports user (Was Re: XCode 4.3)

Aljaž Srebrnič a2piratesoft at gmail.com
Tue Feb 21 09:31:44 PST 2012


..and now I'm a happy dev :) It works, thank you very much!

Aljaž Srebrnič
-- --
My public key:  http://bit.ly/g5pw_pubkey

On 21/feb/2012, at 18:27, Jeremy Huddleston wrote:

> Running 'sudo xcodebuild' should've saved the "agreed-to" bits in /Library as opposed to your own ~/Library, but it looks like it will only do that if you haven't agreed to it already as the user.  You should be able to work around that issue by first "unaccepting" the agreement.  Please give this a try:
> 
> $ defaults delete com.apple.dt.Xcode IDELastGMLicenseAgreedTo
> $ defaults delete com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense
> $ sudo xcodebuild
> 
> After accepting, you should see:
> 
> $ sudo plutil -convert xml1 /Library/Preferences/com.apple.dt.Xcode.plist
> $ cat /Library/Preferences/com.apple.dt.Xcode.plist
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
> <plist version="1.0">
> <dict>
> 	<key>IDELastGMLicenseAgreedTo</key>
> 	<string>EA0720</string>
> 	<key>IDEXcodeVersionForAgreedToGMLicense</key>
> 	<string>4.3</string>
> </dict>
> </plist>
> 
> On Feb 20, 2012, at 11:45 PM, Aljaž Srebrnič <a2piratesoft at gmail.com> wrote:
> 
>> Nope, "sudo xcodebuild" and even "sudo su; xcodebuild" run fine, but "sudo -u macports xcodebuild" still trigger the license agreement…
>> 
>> Aljaž Srebrnič
>> -- --
>> My public key:  http://bit.ly/g5pw_pubkey
>> 
>> On 21/feb/2012, at 08:02, Jeremy Huddleston wrote:
>> 
>>> Please try running 'sudo xcodebuild' and accepting the license as root.  That should allow all users on the system to use XCode (including the macports user).
>>> 
>>> --Jeremy
>>> 
>>> On Feb 18, 2012, at 02:11, Joshua Root wrote:
>>> 
>>>> So it looks like we can't support Xcode 4.3 until there's a fix or
>>>> workaround for this problem. I've added some notices to the web site.
>>>> 
>>>> On 2012-2-18 06:06 , Jeremy Huddleston wrote:
>>>>> I'm sorry I don't have a good solution for you, so I filed a radar.   <rdar://problem/10885779>
>>>>> 
>>>>> On Feb 17, 2012, at 10:40 AM, Aljaž Srebrnič <a2piratesoft at gmail.com> wrote:
>>>>> 
>>>>>> Unfortunately, the user "macports" has its home directory in /var/empty, so even if I set a home via -H, it will have no effect (/var/empty is read only AFAIK)
>>>> 
>>> 
>> 
> 



More information about the macports-dev mailing list