今天升级macOS系统后,终端里使用git的时候,弹出一行莫名其妙的错误:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决方法,重装xcode command line:
xcode-select --install
今天升级macOS系统后,终端里使用git的时候,弹出一行莫名其妙的错误:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决方法,重装xcode command line:
xcode-select --install