iOS pod install一直失败,访问github超时记录

**

iOS pod install一直失败,访问github超时记录

**

使用nslookup github.com 查看网页所对应的IP地址

bash 复制代码
nslookup github.com 

然后在进行系统配置处理,使用sudo进行打开

bash 复制代码
sudo nano /etc/hosts

添加查询到的IP地址和对应的域名信息

bash 复制代码
20.207.73.82 github.com
20.205.243.166 github.global.ssl.fastly.net

然后刷新DNS缓存,使它生效:

bash 复制代码
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

测试修改是否生效

bash 复制代码
ping github.com
curl -I https://github.com

然后在执行pod install。

iOS小知识,记录一下。

相关推荐
GoGeekBaird8 小时前
我开源了 BeeWeave,给 AI Agent 搭一个越用越懂你的知识创作台
后端·github
fthux10 小时前
GitZip Pro 源码解析:一个 GitHub 文件/文件夹下载扩展是如何工作的(一)整体架构与扩展入口
人工智能·ai·开源·github·open source
第一程序员10 小时前
Rust Agent 子进程执行:Command 之前,先定义输入和超时
python·rust·github
2501_9369603612 小时前
GitHub初步了解
github
wangruofeng13 小时前
11 万 Star 的生成式 AI 入门课,Microsoft 做对了什么
github·aigc·ai编程
IOT那些事儿14 小时前
GitHub Profile 429: Too Many Requests
github·profile·429
峰向AI14 小时前
Agent 看不了视频?这个 7K Star 的开源插件一招搞定
github
程序员吕洞宾14 小时前
开源多维表格SmartTable V1.6:自动化工作流,把重复操作交给系统即可
开源·自动化·github·多维表格·飞书多维表
zqx_714 小时前
【无标题】
github
FreeBuf_15 小时前
公开GitHub Issue可诱骗AI泄露私有数据,绕过防护仅需一词
人工智能·github·issue