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

解决方法:手动替换仓库

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

2、然后解压 放到

pod install --verbose出错

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

4、git 初始化
​​ ​git init​

会出现:

jingbin@jingbindeMBP cocoapods % git initInitialized 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出错

Original: https://blog.51cto.com/jinbeen/5346205
Author: jinbeen
Title: pod install –verbose出错

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/517650/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球