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

李志成發表於2018-11-05

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

網上搜尋了很久都說:

xcode-select --install

但是一直報錯,不能連線到更新伺服器。

到這裡到這裡下載:https://developer.apple.com/download/more/ Command Line Tools (macOS 10.14) for Xcode 10.1.dmg

安裝就OK了

參考:
https://www.jianshu.com/p/91eb22fd940b

還有一個問題是, MacOS mojave 10.14.1下載到中間,然後重新下載就一直停住,沒辦法。要麼把資源庫的 Updates的內容刪除,但是沒有許可權,還需要到安全模式,有點麻煩,於是我還是直接下載安裝包好了。
https://support.apple.com/kb/DL1981?locale=en_US

我的個人部落格:http://worthly.cn/

相關文章