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 下载成功

你可能感兴趣的:(SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443)