mac升级后提示xcrun:|mac升级后提示xcrun: error: invalid active developer path

【mac升级后提示xcrun:|mac升级后提示xcrun: error: invalid active developer path】Mac升级后提示:

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

解决方法:
重新安装xcrun,命令行输入:
xcode-select --install

    推荐阅读