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
Similar Posts:
- error: command ‘gcc’ failed with exit status 1
- Error resolving template [index], template might not exist or might not be accessible by any of the configured Template Resolvers
- Vue Error: [Vue warn]: Error compiling template:Templates should only be responsible for mapping…
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent’ of undefined
- [Solved] VUE Error: Component template should contain exactly one root element. If you are using v-if on mu…
- Solution to the problem of “undefined control sequence” when using latex to edit IEEE template [insert picture]
- Vue Error: “Trailing spaces not allowed”
- [Solved] include(../template/header.html): failed to open stream: No such file or dir…
- ZABBIX agent active mode monitoring