ios 自動化構建 code-select: error: tool 'xcodebuild' requires Xcode, but active developer directory.....


問題描述:

Pod installation complete! There are 2 dependencies from the Podfile and 3 total pods installed.
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

原因:

我電腦有兩個xcode 一個是官網下載安裝的,一個是app store 安裝的。

所以應該是Xcode重命名后,xcodebuild找不到原來的Xcode了。

解決方案

終端執行

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

 

此隨筆乃本人學習工作記錄,如有疑問歡迎在下面評論,轉載請標明出處。

如果對您有幫助請動動鼠標右下方給我來個贊,您的支持是我最大的動力。


免責聲明!

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



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