LoginSignup
1

More than 5 years have passed since last update.

Xcode Server設定で"Xcodeの使用許諾契約の条件に同意する必要があります。"と出た場合の対処法

Last updated at Posted at 2016-03-12

問題

OSX ServerでXcode serverの設定をする際、"はじめにXcodeを選択してください"と書いてあるのでインストール済のXcodeを選択をするのですが、"Xcodeの使用許諾契約の条件に同意する必要があります。"と言われ、先に進めなくなる場合があります。
(ダイアログに書かれているような許諾契約の同意画面は表示されず、念のためXcodeを再インストールしてみましたがこのダイアログは消えませんでした)
server.png

対応方法

下記のコマンドを実行します。
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.

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1