项目首次在yarn ios之前需要在ios目录下 pod install,这是必须的操作,然而该步骤十分缓慢,可以进行代理加快速度
终端输入以下命令,注意 下面的1080是sock默认监听端口,如果修改了需要查看本机的代理端口
git config --global http.proxy socks5://127.0.0.1:1080
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
pod install 完成后记得撤销代理
git config --global --unset http.proxy
git config --global --unset http.https://github.com.proxy
最后附上怎么查找本机的代理端口
系统偏好设置->网络->高级设置->代理->SOCKS代理