今天裝CocoaPods的時候陷坑一直卡在Setting up CocoaPods master repo,然后等待很久后彈出“[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master.”
解決方案如下:
1.進入CocoaPods的目錄
cd ~/.cocoapods/repos
2.clone一份代碼下來
git clone https://github.com/CocoaPods/Specs.git master
這個問題在github上的討論鏈接:
https://github.com/CocoaPods/CocoaPods/issues/4293