cocopods安装第三方时出错解决(LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443)

[!] Error installing AFNetworking
[!] /usr/bin/git clone https://github.com/AFNetworking/AFNetworking.git /var/folders/80/sx0zzwkn5sxdw0qc7z35t7s40000gn/T/d20210323-27665-2u0e4f --template= --single-branch --depth 1 --branch 4.0.1

[图片上传中...(截屏2021-03-23 上午11.27.43.png-577a7b-1616470068109-0)]
Cloning into '/var/folders/80/sx0zzwkn5sxdw0qc7z35t7s40000gn/T/d20210323-27665-2u0e4f'...
fatal: unable to access 'https://github.com/AFNetworking/AFNetworking.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

如图

解决方案:

取消HTTP代理
$ git config --global --unset http.proxy
$ git config --global --unset https.proxy

你可能感兴趣的:(cocopods安装第三方时出错解决(LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443))