Android svn:xcrun:エラー:アクティブな開発者パス( '')が存在しません。xcode-selectを使用して変更してください



Android Svn Xcrun



MacのAndroidStudio環境で、コードがSVNからダウンしたときに、このエラーが発生しました



解決策は次のとおりです。 https://www.cnblogs.com/songxing10000/p/4805881.html 。ただし、コマンドを入力すると次のエラーが報告されます。つまり、管理者権限を取得する必要があります。このとき、単一のコマンドを実行するには、suコマンドrootとsudoを使用する必要があります。

xingjunchaodeMacBook-Air:~ xingjunchao$ xcode-select -switch /Applications/Xcode.app/Contents/Developer xcode-select: error: --switch must be run as root (e.g. sudo xcode-select --switch ).

完全なコマンドレコード:

xingjunchaodeMacBook-Air:~ xingjunchao$ su Password: su: Sorry xingjunchaodeMacBook-Air:~ xingjunchao$ xcode-select -switch /Applications/Xcode.app/Contents/Developer xcode-select: error: --switch must be run as root (e.g. sudo xcode-select --switch ). xingjunchaodeMacBook-Air:~ xingjunchao$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer Password: xingjunchaodeMacBook-Air:~ xingjunchao$

正常に解決されました: