网上的方法(对于我这次出现的问题无效):
查询是否使用代理:git config –global http.proxy
取消代理:git config –global –unset http.proxy
解决的方法:
更新了Cocoapods
更新过程中出现错误:
Unable to download data from https://ruby.taobao.org/
设置以下镜像地址出现bad response Not Found 404错误
https://gems.ruby-china.org/
https://ruby.taobao.org/
原来,现在使用的镜像服务器地址应该是https://gems.ruby-china.com
于是,修改的步骤和命令如下:
1.删除原来的镜像地址
sudo gem sources --remove https://ruby.taobao.org/
2.添加新的镜像地址
gem source -a https://gems.ruby-china.com
3.重新更新一下cocoapods
sudo gem install cocoapods
4.正常使用
pod update --no-repo-update 或 pod update
当然你可以查询当前的镜像地址,它已经变成了https://gems.ruby-china.com
gem sources -l