IOS搭建自动化环境需要安装brew,使用ruby命令安装时遇到无法连接的问题:

解决办法:修改hosts文件,将下面的ip地址放到host文件中。记得sudo vi /etc/hosts 。否则会报错。

199.232.28.133 raw.githubusercontent.com

 

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused_IOS自动化