iOS 解决Cocopods执行pod install报错433的问题

1、打开WiFi代理,查看服务器和端口,如下:

iOS 解决Cocopods执行pod install报错433的问题_第1张图片

2、终端执行如下操作,替换自己的服务器和端口

git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890

3、查看配置是否生效

git config --global --edit

4、尝试下载,看看是否还会报错

git clone https://github.com/github/gitignore.git

5、还报错就尝试关闭https的证书验证

git config --global http.sslVerify false

继续尝试4的操作,能下载就说明成功了。

你可能感兴趣的:(cocoapods)