LoginSignup
83
37

More than 5 years have passed since last update.

swift初心者:[carthage導入時のfailed with exit code 72: xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH]の対処方法

Last updated at Posted at 2018-02-20

はじめに

初歩的なエラーかと思いますが、初心者のため備忘録を含め記録として残したいと思います。

結論:Xcordの環境設定でバージョンを選択する。

解決までの流れを説明します。

①carthage update --platform iOS

carthage導入時、上記コマンドを入力した際に
CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES -list) failed with exit code 72: xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATHというエラーが発生してしました。

ターミナル上に以下のコマンドを入力することで解決する記事を発見しましたが、
僕の事例には当てはまりませんでした。

sudo xcode-select -switch /Applications/Xcode9.2.app/Contents/Developer

②xcordの環境設定でバージョンを選択する

https://github.com/Carthage/Carthage/issues/1325
上記記事の通り、PriferenceslocationsCommand Line Toolsを選択しバージョンを指定することで解消しました。

スクリーンショット 2018-02-20 22.29.04.png

ご参考になれば幸いです。

83
37
8

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
83
37