ベルマークのない自由帳

ベルマークのない自由帳

有益と無益の境界例

carthage updateしようとしたらxcrun: error

$ carthage update を実行後

Dependency “hoge" has no shared framework schemes
If you believe this to be an error, please file an issue with the maintainers at 
なんかいろいろ…

xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH

というエラーが発生。

どうやらxcrunコマンドを実行しようとしたところ、  「developer toolのPATHがおかしい」  となったらしい。

解決策

アクティブなXcodeのPATHを指定するためにxcode-selectコマンドを使用。

$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

これで無事解決。

参考にしたページ。

d.hatena.ne.jp

qiita.com