美文网首页
iOS cocoapods安装三方库报错解决方法 LibreSS

iOS cocoapods安装三方库报错解决方法 LibreSS

作者: 今天星期伍 | 来源:发表于2021-08-30 09:41 被阅读0次

    [!] Error installing OBShapedButton

    [!] /usr/bin/git clone https://github.com/ole/OBShapedButton.git /var/folders/gn/lg_jxvj14gndzfpt6_q38mn80000gn/T/d20210719-7174-1jdzyvf --template= --single-branch --depth 1 --branch 1.1.0

    Cloning into '/var/folders/gn/lg_jxvj14gndzfpt6_q38mn80000gn/T/d20210719-7174-1jdzyvf'...

    fatal: unable to access 'https://github.com/ole/OBShapedButton.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

    LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to http://github.com:443

    问题解释

    主要是GitHub访问慢,一直pod install 还是有机会成功的。可以直接换映射安装,非常快。下面有换映射方法。

    解决方法

    1、第一步 打开.gitconfig文件

    2、第二步 加入如下代码片段到文件

    [url "https://github.com.cnpmjs.org/"]

    insteadOf = https://github.com/

    保存,重新pod install即可

    相关文章

      网友评论

          本文标题:iOS cocoapods安装三方库报错解决方法 LibreSS

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