Could not launch Xcode Service on Xcode Server with Xcode 7.2.1
Asked Answered
C

2

7

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.

Cyclonite answered 3/2, 2016 at 10:36 Comment(1)
You're not the only one, it seems Apple broke it: forums.developer.apple.com/thread/34683Desouza
C
8

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.

Cyclonite answered 3/2, 2016 at 15:25 Comment(3)
Was able to get things xcode server running after trying some of the above tips - But repositories are not showing up. So, not real great.Excerpta
You can check if Your repository exist in /Library/Developer/XcodeServer/HostedRepositories/. But if You used the xcrun xcscontrol --reset's command it probably removed all Your content from Xcode Server.Cyclonite
Thanks for solving what happened to my repositories - I was wondering if I had a disk going bad.Excerpta
C
2

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

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

Chanel answered 3/2, 2016 at 13:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.