版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33833327/article/details/78681047
mac执行git命令时候出现:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
如图所示:
解决方法:
打开终端输入:
xcode-select --install
之后点击安装即可:
(实际上不是下载xcode,可能下载xcode有关插件,下载时长约1分钟)
出现错误的原因:
因为之前安装过xcode卸载后出现的。