pod install 报错

308 阅读1分钟

问题:

最近在查看项目中一个第三方SDK提供的demo的时候,在使用cocopods 命令 pod install进行导入demo中的依赖库的时候总是报错fatal: unable to access '<https://github.com/polyv/PLVTimer.git/>': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443具体报错如下:

解决方案:

google了半天解决方法,最终在stackoverflow上找到了解决方法参考解决方案

方法一:在终端执行下面这行命令

git config --global --add remote.origin.proxy ""

方法二:若第一种方法输入命令不管用,可以尝试下面两行命令

git config --global http.sslBackend "openssl"

git config --global --add remote.origin.proxy ""

输入上边两种任何一种方法然后在执行pod install就好了