Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. # Playing with beta Xcode Server
  2.  
  3. 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...
  4. 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:
  5. > You must agree to the terms of the Xcode software license agreement os x server
  6.  
  7. WTF!? I've accepted license agreement in both of my Xcodes (beta and regular one), so what more do you want from me, Apple?
  8. Okay, Google to the rescue!
  9. ```bash
  10. sudo xcodebuild -license
  11. ```
  12. And?? Nothing... Still the same...
  13.  
  14. 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:
  15. ```bash
  16. sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
  17. ```
  18.  
  19. Anyway, that'd be to perfect to be true, so I still get same _You must agree..._.
  20.  
  21. Luckily, I don't exactly remeber where I found this but it was something like
  22. > You have to reset `xcscontrol`
  23.  
  24. Fine, let's do this by typing:
  25. ```bash
  26. sudo xcrun xcscontrol --reset
  27. ```
  28.  
  29. 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:
  30. ```bash
  31. sudo xcrun xcscontrol --initialize
  32. ```
  33. Now you should be ready to go, but remeber to *restart* OS X Server before re-attempting to select Xcode!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement