从 xcode 8.x 更新到 xcode-beta 9.x版后.在使用 git 时,命令 git pull origin master 时,提示
lixiaodongdeMac-mini:PiPiPineapple lixiaodong$ git pull origin master
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 use `xcode-select --install` to install the standalone command line developer tools.
很明显是说开发者路径不存在.当然不存在了,我的 xcode 都换成xcode-beta 9.x版了,所以只要把/Applications/Xcode.app/Contents/Developer--->/Applications/Xcode-beta.app/Contents/Developer即可