美文网首页
cocoapods-- 解决LibreSSL SSL_conne

cocoapods-- 解决LibreSSL SSL_conne

作者: 优雅的步伐 | 来源:发表于2021-11-11 19:01 被阅读0次

在项目中的Podfile文件中 添加第三方库 比如 Masonry,

image.png

当在终端pod install 后报以下错误
“fatal: unable to access 'https://github.com/cloudkite/Masonry.git/': LibreSSL SSL_connect: Operation timed out in connection to github.com:443

解决方法:

1、在终端输入git config --global --unset http.proxy
2、在终端输入git config --global --unset https.proxy
3、查看一下gitconfig 文件 open ~/.gitconfig
4、重新 pod install 一下

image.png

注意: 每次在podfile 中新添加一个第三方库都要再次 执行
git config --global --unset http.proxy 和
git config --global --unset https.proxy

相关文章

网友评论

      本文标题:cocoapods-- 解决LibreSSL SSL_conne

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