我在运行时收到此错误brew update
:
$ brew update
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: Failure while executing: git checkout -q master
如何解决这个问题?
sudo xcode-select -switch /Library/Developer/CommandLineTools/
而不只是添加,sudo xcode-select -switch /
否则效果很好。虽然不需要我整理文件。