xcode卸载后导致git/make异常

问题

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.
See man xcode-select for more details.

方法

可以通过xcode-select命令来重置系统默认的CommandLineTools路径,如下

解决方案:

xcode-select --switch /Library/Developer/CommandLineTools
xcode-select -p

posted @ 2020-05-04 13:17  脚本小娃子  阅读(252)  评论(0编辑  收藏  举报