前言
今天在安裝brew的時候,發現以下問題:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解決
-
重裝xcode command line
xcode-select --install
-
沒解決的話,可以跑這條
sudo xcode-select -switch /