atal: unable to access '': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

参考资料:https://blog.csdn.net/xxzhangx/article/details/77412629

在公司网络执行pod install时报错,网上查了各种关于443错误的解决方法,都没有解决我遇到的这个443问题,

C115xxx:Example xxxxxx$pod install
Analyzing dependencies
Downloading dependencies
Installing Expecta (1.0.6)
Installing Expecta+Snapshots (3.1.1)
Installing FBSnapshotTestCase (2.1.4)

[!] Error installing FBSnapshotTestCase
[!] /usr/bin/git clone https://github.com/facebook/ios-snapshot-test-case.git /var/folders/x3/wzlykv716kb734k87nj6xbqsmglygt/T/d20210317-16566-1k4ubuy --template= --single-branch --depth 1 --branch 2.1.4

Cloning into '/var/folders/x3/wzlykv716kb734k87nj6xbqsmglygt/T/d20210317-16566-1k4ubuy'...
fatal: unable to access 'https://github.com/facebook/ios-snapshot-test-case.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

解决方案:
env命令设置GIT_SSL_NO_VERIFY环境变量为”ture”,并同时调用正常的git clone命令 或者 pod install命令

env GIT_SSL_NO_VERIFY=true pod install

成功解决我的443问题。

你可能感兴趣的:(atal: unable to access '': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443)