今天運行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。大功告成,繼續敲代碼去!
