在pod install或pod update時出現(xiàn)如題的錯誤提示:
...
Setting up CocoaPods master repo
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
named `master-1` 這個錯誤是我這邊master 重復(fù),需要先刪除原master
/Users/用戶名/.cocoapods/repos/master
pod install 或者pod setup 又出現(xiàn)新問題
我這邊是Xcode 路勁問題 . 我進行了升級更新,我還有兩個
首先看下,系統(tǒng)選擇的Xcode
xcode-select -p
輸出
/Applications/Xcode8.3.2.app/Contents/Developer
可是我的是Xcode8.3.3 and Xcode9.0
所以重新指定Xcode路勁就可以了
sudo xcode-select -switch /Applications/Xcode8.3.3.app/