# xcrun: error: invalid active developer path, missing xcrun [TOC] ###### tags: `macOS` --- ## 發生情境 執行 Homebrew 指令時,例如: ```shell $ brew update ``` ## 錯誤訊息 ``` xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun ``` ## 解決方式 重新安裝 Xcode: ```shell $ xcode-select --install ```