pod lib create ObjcName 时候报错error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 5...

原文链接: http://www.cnblogs.com/PeterWolf/p/9436737.html

众所周知 pod lib create ObjcName

需要从git 上边克隆模版 :https://github.com/CocoaPods/pod-template.git

然后有时候会很慢报错:

[!] /usr/bin/git clone https://github.com/CocoaPods/pod-template.git zplib

Cloning into 'zplib'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

第一步:

我们需要知道下边代码的含义:

 pod lib create ObjcName

实际上等同于:

pod lib create ProjectName --template-url=https://github.com/CocoaPods/pod-template.git

下边就是见证奇迹的时刻!

1、我们去自己的马云或者gitlab上边上传下载好的模版,下载地址: https://github.com/CocoaPods/pod-template.git

2、上传到自己的仓库中:https://gitee.com/peter_zhang/pod-template.git

3、然后代码就可以改成这样的:

pod lib create CuttingEnvironment --template-url=https://gitee.com/peter_zhang/pod-template.git

这样就ok了,减少pod lib create 的时间和被墙的悲剧!

 
   
 

转载于:https://www.cnblogs.com/PeterWolf/p/9436737.html

猜你喜欢

转载自blog.csdn.net/weixin_30625691/article/details/94786434