SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

今天在执行pod install时 突然报错如下,记录一下:
Error installing YYText
[!] /usr/bin/git clone https://github.com/ibireme/YYText.git /var/folders/y4/6rtn2s5j2zx4md1jkhx4dtmc0000gn/T/d20210324-81452-7xv5ob --template= --single-branch --depth 1 --branch 1.0.7

Cloning into '/var/folders/*******'...
fatal: unable to access 'https://github.com/ibireme/YYText.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

按网上各种解决方案,执行
git config --global --unset http.proxy
git config --global --unset https.proxy
都不好使,一脸懵逼。最后在stackoverfllow尝试到一种解决方案,文章地址:[https://stackoverflow.com/questions/48987512/ssl-connect-ssl-error-syscall-in-connection-to-github-com443]
解决方案:1.在终端 vim ~/.gitconfig
2.编辑 删除 [http]和[https]下的东西
3. esc 然后 :wq 保存退出
再次执行pod install 下载成功

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容