今天升级MacOS后出现如下错误:
victor@bogon ~/Git/my/community % git add .
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决方法:执行如下命令
xcode-select --install
Source: StackOverFlow