卡出在

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'...

解决方法:手动替换仓库

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

2、然后解压 放到
pod install --verbose出错_github

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​​​里的配置
pod install --verbose出错_ios_02