美文网首页
Cocoapods: cloning spec repo `co

Cocoapods: cloning spec repo `co

作者: Eyes_cc | 来源:发表于2020-04-21 17:24 被阅读0次

问题:[!] 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

相关文章

网友评论

      本文标题:Cocoapods: cloning spec repo `co

      本文链接:https://www.haomeiwen.com/subject/lzlpihtx.html