pod install那龜爬速度難以承受,於是想起更換一下鏡像源。
在網上查到的命令大體如下:
pod repo remove master
pod repo add master 鏡像源地址
pod setup
但是每次執行 “pod repo add master https://gitcafe.com/akuandev/Specs.git”
都提示 “To setup the master specs repo, please run `pod setup`.”
沒辦法只能執行 ‘pod setup’
#########################
Setting up CocoaPods master repo
$ /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git master
--progress
Cloning into 'master'...
########################
啥?不是更換鏡像源了嗎,怎么還是從 github上clone,坑啊。
我覺得這中間有點問題,很有可能鏡像源沒有更換成功。於是我輸入命令:
"pod repo add test https://gitcafe.com/akuandev/Specs.git"
提示如下:
#############################
[!] /usr/local/bin/git clone https://gitcafe.com/akuandev/Specs.git test
Cloning into 'test'...
fatal: unable to access 'https://gitcafe.com/akuandev/Specs.git/': SSL certificate problem: Invalid certificate chain
###########################
原來沒有權限,所以添加鏡像源失敗了,由此推導出 “pod repo add master https://gitcafe.com/akuandev/Specs.git”
也執行失敗了,只是沒有提示錯誤信息。你在執行'pod setup'的時候 pod就會使用默認源。