【iOS开发】pod install 时出现 “Error in
2020-09-17 本文已影响0人
我是孙小白
支付宝sdk 和 友盟sdk 一起pod时,会出现UTDID
冲突的问题,此时可以pod 'AlipaySDK_No_UTDID'
来解决冲突。
冲突解决了之后继续pod时, 可能会出现[!] Error installing UTDID
, 提示curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connectio
:

解决方法:
- 打开如下网址:https://www.ipaddress.com

- 输入 raw.githubusercontent.com 查询其IP地址

- 前往文件夹
/etc
, 找到hosts 文件

- 在最后一行输入
199.232.68.133 raw.githubusercontent.com

hosts文件是被锁定的, 想要编辑要先复制一个副本:
![]()
副本编辑完成后, 进行保存,去掉拓展名勾选,存储的文件名改为hosts:
![]()
将此编辑过的文件拖到/etc
目录下, 替换之前的文件,之后重新执行pod install
命令 即可