1.错误信息如下
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
2.解决方案
1.Install Command Line Tools (if you haven’t already):
xcode-select --install
2.Change the active directory:
sudo xcode-select -switch /Library/Developer/CommandLineTools