cocoapods-- 解决LibreSSL SSL_conne
2021-11-11 本文已影响0人
优雅的步伐
在项目中的Podfile文件中 添加第三方库 比如 Masonry,

当在终端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 一下

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