[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master
[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master新的电脑安装 CocoaPods 之后,执行 pod install 时报 [!] Unable to add a source with url https://github.com/CocoaPods/Specs.git
·
[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master
新的电脑安装 CocoaPods 之后,执行 pod install 时报 [!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master
这个错误。
CocoaPods 所在的路径:~/.cocoapods
cd ~/.cocoapods/repos
之后执行如下命令将远程仓库上的 CocoaPods/Specs.git 文件下载到本地
git clone https://github.com/CocoaPods/Specs.git master
➜ repos git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
remote: Enumerating objects: 5011236, done.
remote: Counting objects: 100% (12993/12993), done.
remote: Compressing objects: 100% (5911/5911), done.
Receiving objects: 2% (127064/5011236), 25.45 MiB | 106.00 KiB/s
这个过程可能会比较漫长,克隆速度会比较慢,建议开VPN。
更多推荐
所有评论(0)