CocoaPods错误:RPC失败;curl 18传输关闭,剩余未完成的读取数据 [英] CocoaPods error: RPC failed; curl 18 transfer closed with outstanding read data remaining

查看:48
本文介绍了CocoaPods错误:RPC失败;curl 18传输关闭,剩余未完成的读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用CocoaPods导入Realm时,如下所示:pod install --verbose --no-repo-update然后发生错误:错误:RPC失败;curl 18传输关闭,剩余未完成的读取数据致命:远端意外挂断致命的:早期EOF致命:索引包失败致命:将'https://github.com/ColinH/PEGTL'克隆到子模块路径'/private/var/folders/51/tzbm7yqs3bsck5vxz3xj5pkc0000gn/T/d20160925-2957-1pu1dou/Realm/ObjectStore/external/pegtl'失败为什么?

When I tried to import Realm with CocoaPods like this: pod install --verbose --no-repo-update then error happened: 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 fatal: clone of 'https://github.com/ColinH/PEGTL' into submodule path '/private/var/folders/51/tzbm7yqs3bsck5vxz3xj5pkc0000gn/T/d20160925-2957-1pu1dou/Realm/ObjectStore/external/pegtl' failed why?

推荐答案

上述错误主要是由于os10.11 +和cocoapods1.0 +版本升级的安全性机制发生了变化.主要在pod设置过程中.而且此过程的等待时间很长

The above error is mainly caused by the change of the security mechanism of os10.11+ and cocoapods1.0+ version upgrade. Mainly in the pod setup process. And the waiting time for this process is very long

git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master

与广告连播设置相同的效果

The same effect as pod setup

这篇关于CocoaPods错误:RPC失败;curl 18传输关闭,剩余未完成的读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆