xcrun:エラー:アクティブな開発者パス
Xcrun Error Active Developer Path
git clone https://github.com/xxxxx/mbstore_shell_full.gitの実行後にエラーを報告します:
xcrun: error: active developer path ('/Users/ng/Downloads/Xcode.app/Contents/Developer') does not exist Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools. See `man xcode-select` for more details.
使用してみてください(無効、まだエラー):
sudo xcode-select --switch path/to/Xcode.app // path is substituted into Xcode directory address
そして使用する(無効、それでもエラーを報告する):
xcode-select --install
エラー:
xcode-select: error: command line tools are already installed, use 'Software Update' to install updates
Software Updateを実行しようとするとエラーも発生します。これにより、Software Updateを直接入力する代わりに、updateコマンドを使用するように通知されます。
次の方法が効果的であると言う人もいます(再ダウンロードしようとすると、まだ無効ですが、gitバージョンはエラーを報告します):
rm -rf /Library/Developer/CommandLineTools xcode-select --install
実際に機能するのはここです:
xコードの更新後、svnコマンド(例:svn update)は使いにくいので、次のコマンドを実行します
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
$ git version git version 2.20.1 (Apple Git-117)