出現這類錯誤,通常是因為代理發生的,取消代理即可!
1、查看有無相關代理:
git config --global http.proxy
git config --global https.proxy
2、有的話,取消即可
git config --global --unset http.proxy
git config --global --unset https.proxy
3、如果1查詢沒有,或者2失敗,那么打開並編輯隱藏文件.gitconfig
隱藏文件顯示:defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
在系統的用戶目錄下打開.gitconfig文件
刪除代理那行數據
4、應該就可以pod update了,我的錯誤到此結束的