升级了MacOS系统之后,提交代码到github失败,出现了错误,如下:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), 
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

解决方法

xcode-select --install