Tag Archives: errn…

Pod lib Create ObjcName error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errn…

As we all know, pod lib create objcname

You need to clone the template from git: https://github.com/CocoaPods/pod-template.git

And then sometimes it’s very slow to report an error:

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

Step one:

We need to know the meaning of the following code:

pod lib create ObjcName

In fact, it is equivalent to:

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

Below is the moment to witness the miracle

1. Let’s go to Ma Yun or gitlab to upload and download the template https://github.com/CocoaPods/pod-template.git

2. Upload to your own warehouse: https://gitee.com/peter_ zhang/pod-template.git

3. Then the code can be changed to this:

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

So OK, reduce the time of pod lib create and the tragedy of being blocked by the wall