問題
OSX ServerでXcode serverの設定をする際、"はじめにXcodeを選択してください"と書いてあるのでインストール済のXcodeを選択をするのですが、"Xcodeの使用許諾契約の条件に同意する必要があります。"と言われ、先に進めなくなる場合があります。
(ダイアログに書かれているような許諾契約の同意画面は表示されず、念のためXcodeを再インストールしてみましたがこのダイアログは消えませんでした)
対応方法
下記のコマンドを実行します。
sudo /Applications/Xcode.app/Contents/Developer/usr/bin/xcscontrol --initialize
xcscontrol
はXcode Serverの管理用コマンドです。その他のオプションについてはman xcscontrol
で確認できます。
XCSCONTROL(1) XCSCONTROL(1)
NAME
xcscontrol - utility for managing Xcode Server
SYNOPSIS
xcscontrol [options...]
DESCRIPTION
xcscontrol is a command-line utility used for managing Xcode Server instances. It lives inside
Xcode, and can usually be found at /Contents/Developer/usr/bin/xcscontrol.
OPTIONS
-h, --help, --usage
Prints basic usage information.
--version
Displays version information.
--preflight
Preflights the Xcode Server service.
--initialize
Initializes Xcode Server, must be called before the service is usable.
--reset
Resets Xcode Server, removing all service data and stopping all services.
--restart
Restart Xcode Server without removing any service data.
--shutdown
Stops Xcode Server.
--health
Fetches and displays server status and statistics.