2021-12-07 pod install 常見報錯解決

1.SSL_ERROR_SYSCALL in connection to github.com:443 報錯

[!] Error installing TensorFlowLiteSwift
[!] /usr/bin/git clone https://github.com/tensorflow/tensorflow.git /var/folders/0g/f7wvhrwj1dxg7m1p_rryw3q00000gn/T/d20211207-4474-weuazf --template= --single-branch --depth 1 --branch v2.7.0

Cloning into '/var/folders/0g/f7wvhrwj1dxg7m1p_rryw3q00000gn/T/d20211207-4474-weuazf'...
fatal: unable to access 'https://github.com/tensorflow/tensorflow.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 

解決方案:
如果鍵入github.com:443后進入的Github不是當(dāng)前git config --global -l里當(dāng)前賬號的倉庫,那就退出登錄。如果出現(xiàn)的是Github的登錄界面,那就登錄Github。

a123@123deMacBook-Pro ios % pod install
Analyzing dependencies
Downloading dependencies
Installing TensorFlowLiteC 2.6.0 (was 0.0.1-nightly.20201122)
Installing TensorFlowLiteSwift 2.6.0 (was 0.0.1-nightly.20201122)
Generating Pods project
Integrating client project
Pod installation complete! There are 2 dependencies from the Podfile and 3 total pods installed.
a123@123deMacBook-Pro ios % 

2.Failed to connect to github.com port 443: Operation timed out

a123@123deMacBook-Pro ios % pod install
Analyzing dependencies
Downloading dependencies
Installing TensorFlowLiteC 2.6.0 (was 0.0.1-nightly.20201122)
Installing TensorFlowLiteSwift 2.6.0 (was 0.0.1-nightly.20201122)

[!] Error installing TensorFlowLiteSwift
[!] /usr/bin/git clone https://github.com/tensorflow/tensorflow.git /var/folders/0g/f7wvhrwj1dxg7m1p_rryw3q00000gn/T/d20211207-4427-qk3men --template= --single-branch --depth 1 --branch v2.6.0

Cloning into '/var/folders/0g/f7wvhrwj1dxg7m1p_rryw3q00000gn/T/d20211207-4427-qk3men'...
fatal: unable to access 'https://github.com/tensorflow/tensorflow.git/': Failed to connect to github.com port 443: Operation timed out

增加github.global.ssl.fastly.net和github.com的映射
獲取Github相關(guān)網(wǎng)站的ip

訪問https://www.ipaddress.com,拉下來,找到頁面中下方的“IP Address Tools – Quick Links”

分別輸入github.global.ssl.fastly.net和github.com,查詢ip地址

在hosts文件里添加:

# github
199.232.69.194 github.global.ssl.fastly.net
140.82.112.4 github.com

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

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

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