今天执行
git clone 命令的时候出错
xcrun: error: active developer path ("/Applications/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 see `man xcode-select`)
是因为最近Xcode更新了版本
解决办法就是:将Xcode的路径,重新设置一下。
sudo xcode-select --switch “Xcode的path,直接在应用程序里面找到Xcode,拖拽到这里”
回车 输入密码 ok