當我輸入git init時,遇到了這個錯誤,試圖推送到git。升級到El Capitan後無效的活動開發者路徑錯誤
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
我試過以下解決方案。
xcode-select —install,
sudo xcode-select -switch,
sudo xcode-select —install,
brew doctor,
brew update,
brew upgrade,
brew cleanup
從El Capitan升級到Sierra時,我遇到了同樣的問題,解決方案也是一樣的:下載Sierra的命令行工具版本。 – Andrea