Failed to start Xcode service on Xcode server using Xcode 7.2.1

After upgrading Xcode (from 7.2 to 7.2.1), XcodeServer cannot start the Xcode service. When I select the updated Xcode, then a message is displayed with the message: Enable Accessibility access for UI Testing (...) . After clicking the Request Access button for this warning, XcodeServer will send me a message saying You must agree to the terms of the Xcode software license agreement. Launch Xcode again and agree to the software license agreement, or choose a different version of Xcode. You must agree to the terms of the Xcode software license agreement. Launch Xcode again and agree to the software license agreement, or choose a different version of Xcode. . Of course, I did this (several times), and also Xcode (and Xcode Helper) are in the list of allowed applications in the "Availability of privacy" section of "System Preferences".

Can anybody help? Or does someone have the same problem?

I broadcast the command lines:

 xcrun xcscontrol --reset 

and

 xcodebuild -license 

After installing the previous version (7.2), everything works as usual.

Edited by:

After installing the previous version (7.2), I do not see any of my bots that I created earlier. (but this is probably the result of xcrun xcscontrol --reset .

+7
xcode xcode-server
source share
2 answers

As Eimantas Vaiciunas writes on the Apple Developer forum:

Since checkFirstLaunchStatus with sudo returned 69, I started Xcode with sudo too:
sudo / Applications / Xcode.app / Contents / MacOS / Xcode
This started Xcode with a request for a license agreement and after the agreement, everything went fine.

+8
source share

sudo / Applications / Xcode.app / Contents / Developer / usr / bin / xcscontrol --initialize

Did the trick for me. Use at your own risk.

+2
source share

All Articles