場(chǎng)景:有些同學(xué)可能會(huì)遇到這樣一個(gè)問(wèn)題,在pod install某個(gè)庫(kù)的時(shí)候菩掏,終端可能會(huì)出現(xiàn)the time out - 443 這個(gè)問(wèn)題弟塞。
[!] Error installing RxSwift
[!] /usr/bin/git clone https://github.com/ReactiveX/RxSwift.git /var/folders/cq/2r617rsn6jz320whyfvxyrf40000gn/T/d20210628-44259-eqtef7 --template= --single-branch --depth 1 --branch 5.1.2
Cloning into '/var/folders/cq/2r617rsn6jz320whyfvxyrf40000gn/T/d20210628-44259-eqtef7'...
fatal: unable to access 'https://github.com/ReactiveX/RxSwift.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
解決方案:
終端設(shè)置代理!
首先我們需要將電腦連上可以安全上網(wǎng)的環(huán)境
設(shè)置命令
設(shè)置http代理
git config --global http.proxy http://127.0.0.1:7890
設(shè)置https代理
git cnfig --global https.proxy https://127.0.0.1:7890
地址:127.0.0.1:7890獲取方法見(jiàn)下圖:
當(dāng)我們問(wèn)題解決了赦政,可以斷開(kāi)代理
取消命令
取消http代理
git config --global --unset http.proxy
取消https代理
git config --global --unset https.proxy