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

众所周知 pod lib create ObjcNamegit

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

而后有时候会很慢报错:curl

[!] /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

第一步:gitlab

咱们须要知道下边代码的含义:url

pod lib create ObjcName

实际上等同于:spa

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

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

一、咱们去本身的马云或者gitlab上边上传下载好的模版,下载地址: https://github.com/CocoaPods/pod-template.gitblog

二、上传到本身的仓库中:https://gitee.com/peter_zhang/pod-template.gitrem

三、而后代码就能够改为这样的:get

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

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

相关文章
相关标签/搜索