热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

podupdate更新error:RPCfailed;curl18transferclosedwithoutstandingreaddataremaining

1、podupdate的时候出现下边的错误error:RPCfailed;curl18transferclosedwithoutstandingreaddataremainingf

1、

pod update 的时候出现下边的错误

 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

[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`

然后尝试了各种办法:

 1.1更新http下载对速度的限制因为curl的postBuffer默认值太小的原因,而项目可能本身比较大,所以下载失败。1、Git config –global http.postBuffer 524288000结果都以失败告终。

解决方案看了简书的一篇文章:上面错误主要是os10.11+和cocoapods1.0+版本升级的安全机制更改造成的。主要出现在pod setup过程中。且该过程等待时间非常长,所以,你可以在$sudo gem install -n /usr/local/bin cocoapods命令后直接执行$Gitclone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master 该过程作用与 pod setup作用相同,作者亲测。效果极佳!!!!

然后去看了https://git.coding.net/CocoaPods/Specs.git远端代码索引库!结果作者停止更新了!

 

然后我就想起最终解决方案:

2、解决第一步:

$sudo gem install -n /usr/local/bin cocoapods

第二步:

$Git clone https://github.com/CocoaPods/Specs.git  ~/.cocoapods/repos/master

完美解决!!!

 

转:https://www.cnblogs.com/PeterWolf/p/10437107.html



推荐阅读
author-avatar
liuleyi
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有