pod install --verbose出错

卡出在

Cloning spec repo `cocoapods-1` from `https://github.com/CocoaPods/Specs.git`
  $ /usr/bin/git clone https://github.com/CocoaPods/Specs.git -- cocoapods-1
  Cloning into 'cocoapods-1'...

部分参考:https://blog.csdn.net/csdn2314/article/details/116599288

解决方法:手动替换仓库

1、去国内镜像地址手动下载
https://github.com/CocoaPods/Specs
但是由于科学上网的原因,下载的异常慢,可以去国内镜像地址下载:
https://gitee.com/mirrors/CocoaPods-Specs

2、然后解压 放到
cocoapods地址

3、终端进入
cd /Users/jingbin/.cocoapods/repos/cocoapods

4、git 初始化
git init

会出现:

jingbin@jingbindeMBP cocoapods % git init
Initialized empty Git repository in /Users/jingbin/.cocoapods/repos/cocoapods/.git/

5、关联仓库
git remote add origin https://github.com/CocoaPods/Specs

6、查看是否正常
查看 .git/config里的配置

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值