更新 Mac 出現 xcrun: error 解法

今天更新了 Mac 要執行 Command 出現錯誤

問題

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

解決方法

升級一下 Xcode Command Line Tools

xcode-select --install