年末は仕事が忙しく、久しぶりの更新になってしまいました。
今回はXcodeでアプリをビルドするときに「failed with exit code 72: xcrun: error: unable to find utility “xcodebuild”, not a developer tool or in PATH」というエラーが発生した時の対処方法を説明します。
発生する環境
carthageを導入しており、かつ複数のバージョンのXcodeを使用していると発生します。
解決方法
XcodeのPreferencesを開きLocationsを選択、「Command Line Tools:」からプロジェクトのビルドに使用するXcodeのバージョンを選択し、carthageの更新を行なってみてください。これで解決すると思います。
![](https://shuhey-hashimoto.com/wp-content/uploads/2021/12/スクリーンショット-0003-12-29-19.33.12.png)
![](https://shuhey-hashimoto.com/wp-content/uploads/2021/12/スクリーンショット-0003-12-29-19.33.36-1024x678.png)
誰かの参考になれば。
コメント