さてツールのインストールの最後です。
- Homebrew(済)
- swift-format(済)
- SwiftLint(済)
- xcbeautify(済)
- xcode-build-server
もう最初からGithubから取ってきます。
ただのPythonスクリプトらしいです。
# 1. 取得
git clone https://github.com/SolaWing/xcode-build-server.git
# 2. 関連ファイルごと保存しておきたい場所にフォルダを移動
(ホーム直下の .xcode-build-server などの隠しフォルダにしておくと邪魔になりません)
mv xcode-build-server ~/.xcode-build-server
# 3. パスの通っている場所に「本体へのショートカット(シンボリックリンク)」を作成
sudo ln -sf ~/.xcode-build-server/xcode-build-server /usr/local/bin/xcode-build-server
# 4.動作確認
xcode-build-server --help
usage:
/usr/local/bin/xcode-build-server: start a build server
/usr/local/bin/xcode-build-server serve: start a build server
/usr/local/bin/xcode-build-server config: bind xcworkspace and generate a buildServer.json to current dir
/usr/local/bin/xcode-build-server parse: xcode log subcommand. call parse -h to see more help
/usr/local/bin/xcode-build-server postaction: dump a xcode post build bash script to sync flags to .compile(usage: `/usr/local/bin/xcode-build-server postaction | bash &` in xcode post build bash script)
/usr/local/bin/xcode-build-server [-h|--help]: show help
SPECIAL ENVIRONMENT VARIABLE:
SOURCEKIT_LOGGING=3: enable detail debug log
XBS_LOGPATH: set log path. default is `:stderr`. use `:null` to disable log
XBS_FEAT_NEWFILE=1: enable auto new file hack by infer flags from same dir files.., default true
使い方が表示されたので問題なし。
0 件のコメント:
コメントを投稿