错误说明
我们在升级了MacOS系统之后出现了错误,如下:
# git add .
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
在终端中输入git命令出现了上述错误,后来想到应该是升级了系统导致的。下面给出解决方法。
解决办法
在终端输入:
xcode-select –install
重装command line tools 就好了
回复给 “MacOS升级后出现的 xcrun: error: invalid active developer path, missing xcrun 错误 解决办法 图文教程”
xcode-select –install