xcode

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

root cause: Xcode command line tools丢失,基本上每次升级macOS都会被它问候

解决方法,重装 xcode command line:

1
2
$ xcode-select --install
xcode-select: note: install requested for command line developer tools

回车之后会出现弹窗,点击"安装"即可