CocoaPod 的大多數(shù)依賴源都是托管在 GitHub上的,在天朝訪問 GitHub 問題不大恕洲,但是 googlesource 就需要科學(xué)的上網(wǎng)方法了。但是就算你用科學(xué)的上網(wǎng)方法,在瀏覽器是可以打開 googlesource 的冤议,但是 git 依然不能通過代理下載 googlesource 的代碼依賴骄瓣。
下面是解決辦法停巷,用以修復(fù) 443端口 timeout 問題。
該方法只針對(duì)使用獸獸且socks5端口號(hào)為1086的科學(xué)上網(wǎng)方法榕栏。
git config --global http.https://chromium.googlesource.com.proxy socks5://127.0.0.1:1086
git config --global https.https://chromium.googlesource.com.proxy socks5://127.0.0.1:1086