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

你已經從 App Store 更新到了 OS EI Capitan 嗎?
你是否突然在項目中得到如下錯誤?

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

如果是,這裏是解決方法:
xcode-select --install

請記住,在 Mac 中 git 是依附在 XCode 的命令行工具上的

原文鏈接

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章