Mac_升级系统后无法使用命令行
2018-02-08 本文已影响56人
古佛青灯度流年
使用git时报错:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决方案:
在终端输入:
xcode-select --install
据说原因是因为每次更新系统之后xcode就被卸载了,因此需要重新安装一次。特此记录,以便查阅。