美文网首页
cocoapods git clone https://gith

cocoapods git clone https://gith

作者: 出来遛狗了 | 来源:发表于2020-07-21 20:59 被阅读0次

    今天在执行pod install 的时候,由于podfile的source 是https://github.com/CocoaPods/Specs.git,但是https://github.com/CocoaPods/Specs.git源比较大,而且速度较慢,一直clone失败
    失败原因:
    RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
    解决方法:

    1. 可能是git http 传输大小限制和速度太低的原因
      解决方法:
    $ git config --global http.postBuffer 524288000
    $ git config --global http.lowSpeedLimit 0
    $ git config --global http.lowSpeedTime 999999         //单位 秒
    
    1. 由于clone速度太慢,所以使用git 命令clone一直失败
      我尝试了使用github桌面端工具clone发现速度很快


      image.png

      具体方法和sourcetree一样,首先在~/.cocoapods/repos建一个master目录
      作为工程目录,直接clone就行了,如下图(由于我clone过了,不是空文件夹,所以有错误)


      image.png
      然后慢慢等待吧,速度会快很多,而且能看到进度(ps: 用了直连香港的梯子,不知道不用梯子速度怎么样)
      等clone完再去pod install 就不会再失败了

    相关文章

      网友评论

          本文标题:cocoapods git clone https://gith

          本文链接:https://www.haomeiwen.com/subject/jziwkktx.html