xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xc

xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xc

解决方案:

使用这个sudo xcode-select -switch /