pod install出現(xiàn)錯誤
[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master.You can try adding it manually in ~/.cocoapods/repos or via pod repo add.
網(wǎng)上通用的方法
sudo xcode-select -switch /Users/用戶名/Desktop/Xcode\ 3.app
后面就是你xcode的路徑,有兩種版本
1 . 可以直接把你的xcode拖到終端
2 . 右擊xcode,顯示包內(nèi)容,把Contents->Developer拖到終端,如圖所示

RWN.png
我的解決辦法
但是兩種方法我都試了,都沒有管用,后來改了一下DNS就好了,把DNS改成了8.8.8.8就好了

RWN.png