Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not launch Xcode Service on Xcode Server with Xcode 7.2.1

After update Xcode (from 7.2 to 7.2.1) XcodeServer is unable to run Xcode Service. When I choose updated Xcode then alert with message: Enable Accessibility access for UI Testing (...) appear. After tap on Request Access's button of this alert XcodeServer give me an alert with message 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 done this (few times) and also the Xcode (and Xcode Helper) are on the list of allowed app in Accessibility section of Privacy in System Preferences.

Does anyone can help? Or has anyone the same issue?

I was tring commands lines:

xcrun xcscontrol --reset

and:

xcodebuild -license

After instal previous version (7.2) everything works as usual.

Edited:

After instal previous version (7.2) I can not see any of my bot I have created before. (but this is probably result of xcrun xcscontrol --reset.

like image 409
Mateusz Avatar asked Feb 03 '16 10:02

Mateusz


2 Answers

As Eimantas Vaiciunas post at Apple Developer Forums:

Since checkFirstLaunchStatus with sudo returned 69 I launched Xcode with sudo too:
sudo /Applications/Xcode.app/Contents/MacOS/Xcode
This launched Xcode with license agreement prompt and after agreeing, everything went fine.

like image 114
Mateusz Avatar answered Nov 04 '22 03:11

Mateusz


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

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

like image 27
SKerkewitz Avatar answered Nov 04 '22 04:11

SKerkewitz