Skip to content

Instantly share code, notes, and snippets.

@cojoj
Last active February 2, 2016 22:19
Show Gist options
  • Save cojoj/cbc4d923c956bd2a3ea6 to your computer and use it in GitHub Desktop.
Save cojoj/cbc4d923c956bd2a3ea6 to your computer and use it in GitHub Desktop.
Xcode Server license agreement

Playing with beta Xcode Server

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!

@jriskin
Copy link

jriskin commented Feb 2, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment