最近在查看項(xiàng)目中一個(gè)第三方SDK提供的demo的時(shí)候,在使用cocopods 命令
pod install
進(jìn)行導(dǎo)入demo中的依賴庫的時(shí)候總是報(bào)錯(cuò)fatal: unable to access 'https://github.com/polyv/PLVTimer.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
具體報(bào)錯(cuò)如下:
Snip20210328_2.png
-
解決方案:
搜索了半天解決方法坞笙,最終在stackoverflow上找到了解決方法參考解決方案
方法1.打開終端在終端中執(zhí)行以下命令就可以了瓮具。
git config --global --add remote.origin.proxy ""
方法2.若第一種方法輸入命令不管用院喜,可以嘗試先輸入下邊命令场刑,然后在執(zhí)行第一種方法的命令鳄乏。
步驟一:
git config --global http.sslBackend "openssl"
步驟二:
git config --global --add remote.origin.proxy ""
輸入上邊兩種任何一種方法然后在執(zhí)行
pod install
就好了蔽豺。