pod install LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 解決辦法

親測(cè)可成功20210319
pod install 提示如下錯(cuò)誤的解決辦法:

[!] Error installing FirebaseInstallations
[!] /usr/bin/git clone https://github.com/firebase/firebase-ios-sdk.git /var/folders/m0/mjmf2m715sq5wplny59hv9w40000gn/T/d20210319-2221-j67ihv --template= --single-branch --depth 1 --branch Installations-1.7.0

Cloning into '/var/folders/m0/mjmf2m715sq5wplny59hv9w40000gn/T/d20210319-2221-j67ihv'...
fatal: unable to access 'https://github.com/firebase/firebase-ios-sdk.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
  1. 更換/etc/hosts文件中的IP,原來是啥IP更換成一個(gè)新的,即使原來的可用


    image.png

2.然后刷新緩存:

sudo killall -HUP mDNSResponder

3.如果中間老是中斷,則在終端用ssh命令再下載一次.

git clone git@github.com:firebase/firebase-ios-sdk.git

如果是由于重裝系統(tǒng)導(dǎo)致的,需要重新在gitHub上配置一下rsa密鑰,否則無法ssh下載。

a)要在做過git clone的終端再做pod install
b)如果中間老斷,則刪除下載的再git clone下載一次,或者重新打開終端git clone.
c)可以多執(zhí)行幾次,或者多等一會(huì)再多執(zhí)行幾次

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容