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 的時間和被牆的悲劇!

相關文章
相關標籤/搜索