设置代理
如果你的代理配置里是
mixed-port: 7890
方式一:
临时代理(只对当前命令有效)
http_proxy=http://127.0.0.1:7890 https_proxy=http://127.0.0.1:7890 pod install
然后再运行:pod install
方式二:
导出环境变量(对当前终端会话有效)
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
然后再运行:pod install
清除代理
unset http_proxy
unset https_proxy