I wanted to get may hands on this new and fancy Xcode Server, so I've jumped straight to installing beta Xcode and beta OS X Server - that was easy (as always), but... When I've opened OS X Server and switched to Xcode tab I had to choose Xcode which I want to use as Xcode Server - fine, but to easy tasks in a row can't complet with success. I get this rather confusing dialog:
You must agree to the terms of the Xcode software license agreement os x server
WTF!? I've accepted license agreement in both of my Xcodes (beta and regular one), so what more do you want from me, Apple? Okay, Google to the rescue!
sudo xcodebuild -license
And?? Nothing... Still the same...
I had to dig deeper to find anything at all but I've found that those two Xcodes are somehow competing with each other and my xcode-select
was set to the regular version, not the beta one, so I've changed it using:
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
Anyway, that'd be to perfect to be true, so I still get same You must agree....
Luckily, I don't exactly remeber where I found this but it was something like
You have to reset
xcscontrol
Fine, let's do this by typing:
sudo xcrun xcscontrol --reset
But this will only remove all xcscontroll
setting (and there are a lot of them...), so after this you have to init them with this command:
sudo xcrun xcscontrol --initialize
Now you should be ready to go, but remeber to restart OS X Server before re-attempting to select Xcode!
I just have to say THANK YOU, this was driving me crazy. Random google searches later lead me here...i'm not running any beta's but --reset and --initialize fixed everything.