Cocoapods: cloning spec repo `cocoapods` from `https://github.com/cocoapods/specs.git` compressing

问题:[!] cloning spec repo cocoapods from https://github.com/cocoapods/Specs.git compressing

  • 方法一
1.概况

终端显示

Cloning spec repo 'cocoapods' from 'https://github.com/CocoaPods/Specs.git'
2.原因

其实是正在从github上进行下载,但是下载速度很慢

  1. 可以在 活动监视器里的网络列表里找git-remote-https,这条即是当前的下载进度,可看到缓缓的在变动下载数据
    image.png
  2. 何时下载完成,这里可利用github的api查看下项目大小
    https://api.github.com/repos/CocoaPods/Specs
    这是github的api,返回一串json,是项目的相关信息.里面找size,即是项目大小,我看得750M多, so 耐心些等吧
  • 方法二
1、
pod setup
cd ~/.cocoapods/repos 
git clone --depth 1 https://github.com/CocoaPods/Specs.git master
image
2、如果报错:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining 
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

解决方法:

git config --global http.postBuffer 524288000
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容