Cocoapods報錯xcrun: error: active developer path ("/Users/wangwei/Downloads/Xcode.app/Contents/Developer") does not exist


今天運行pod install 居然拋出一個xcrun: error: active developer path ("/Users/wangwei/Downloads/Xcode.app/Contents/Developer") does not exist錯誤,然后一想昨天都是正常的,怎么會產生錯誤呢。突然想起早晨刪除了一個低版本的Xcode,然后一看錯誤信息,果然是這樣引起的。Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.

這句話不就是說用系統管理員身份選擇Xcode路徑就行了嗎?果斷運行sudo xcode-select --switch Applications/Xcode.app, Applications/Xcode.app 為Xcode路徑。然后輸入密碼,然后pod install更新一下,顯示Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed。大功告成,繼續敲代碼去!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM