看下访问开发者网站的延迟
ping developer.apple.com
平均延迟在68ms左右
PING world-gen.g.aaplimg.com (17.253.69.201): 56 data bytes
64 bytes from 17.253.69.201: icmp_seq=0 ttl=54 time=68.166 ms
64 bytes from 17.253.69.201: icmp_seq=1 ttl=54 time=67.995 ms
64 bytes from 17.253.69.201: icmp_seq=2 ttl=54 time=68.023 ms
Request timeout for icmp_seq 3
64 bytes from 17.253.69.201: icmp_seq=4 ttl=54 time=67.386 ms
64 bytes from 17.253.69.201: icmp_seq=5 ttl=54 time=68.337 ms
64 bytes from 17.253.69.201: icmp_seq=6 ttl=54 time=68.169 ms
64 bytes from 17.253.69.201: icmp_seq=7 ttl=54 time=68.836 ms
64 bytes from 17.253.69.201: icmp_seq=8 ttl=54 time=68.034 ms
64 bytes from 17.253.69.201: icmp_seq=9 ttl=54 time=67.800 ms
64 bytes from 17.253.69.201: icmp_seq=10 ttl=54 time=67.633 ms
64 bytes from 17.253.69.201: icmp_seq=11 ttl=54 time=68.363 ms
64 bytes from 17.253.69.201: icmp_seq=12 ttl=54 time=68.323 ms
看下17.253.69.201这个IP地址,查询网址,可以发现是境外的IP。
如果找到一个Apple位于大陆的CDN节点,那么速度应该会快一些。
解决办法:
快捷键 command + shift +G,输入前往文件夹
/etc/hosts
复制hosts文件到桌面,在最后添加下面两行内容
17.253.85.202 developer.apple.com
17.253.85.201 devstreaming-cdn.apple.com
或者使用终端vim命令编辑
sudo vim /etc/hosts
直接编辑hosts文件
网友评论