LoginSignup
2
0

More than 5 years have passed since last update.

xcodebuild コマンドで.appが作られるパスを取る

Posted at

xcodebuild コマンドで.appが作られるパスを取る

xcodebuildコマンドには -showBuildSettings というオプションがあります。
ビルド時の環境変数が出力されます。

xcodebuild -workspace myproject.xcworkspace -scheme MyApp -showBuildSettings

ここからパスだけ取り出すには次のように

xcodebuild -workspace myproject.xcworkspace -scheme MyApp -showBuildSettings | grep -m 1 "CONFIGURATION_BUILD_DIR" | grep -oEi "\/.*"

参考

2
0
0

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
2
0