您的位置:首页 > 产品设计 > UI/UE

升级iOS7遇到问题This device isn't eligible for the requested build的解决方法

2013-09-23 16:25 645 查看
今天用iTunes升级iOS7,中间遇到点小问题:This device isn't eligible for the requested build.

后在一个帖子上找到解决方法:

Thankfully the solution is simple and falls into one of two areas: 

The iOS version that’s been downloaded isn’t the right one for the device. 
There’s an entry in your host file redirecting Apple traffic to another location. 
In most cases, it’ll be the second option. As a quick test on the machine where you’re trying to do a restore put the following into a web browser http://gs.apple.com If an Apple 404 page (page not found) is displayed then you should be good to restore and therefore you should re-download the required firmware, reboot both your computer and the iPhone and try again. If an index page is displayed (like displayed below) then
it means you’ve got entries in your host file you need to remove. 

The process for removal on Mac and Windows machines is slightly different but we’ve detailed them below: 

Mac OS X 

1. On your Mac, open your Applications folder. 

2. Navigate to the Utilities folder. 

3. Open Terminal. 

4. Type “sudo nano /etc/hosts” (without quotes) and press enter. 

5. Enter your password 

6. Use the down arrow key to find the gs.apple.com entries. Once the cursor is in front, make sure you comment out the line(s) by entering # in front of the text. 

7. Save the file by pressing CONTROL+O, then enter.

8. Exit the nano editor by pressing CONTROL+X. 

9. Restore your iDevice. 

非常简单:

打开终端 —— 输入命令:sudo nano /etc/hosts,回车 —— 输入密码 —— 找到gs.apple.com这一行,在前面加上#(直接打开该网址显示的是Cydia),如下图所示:



然后按control + O,之后回车。

保存成功后按control + X退出。

重启设备,用iTunes升级,中间遇到了一些小错误,错误代码为6,但是用下载好的iOS7固件恢复设备后升级iOS7成功。

最后分析一下,应该是我的iPhone越狱了,在版本升级时要打开Apple的一个网址却被重定向到另一个入口,gs.apple.com(Cydia):



还有就是Host Files的作用:

Hosts是一个没有扩展名的系统文件,可以用记事本等工具打开,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统再会将网址提交DNS域名解析服务器进行IP地址的解析。

在做了以上修改后,再打开gs.apple.com是打不开的,在前面加个#应该是把该行变成了注释之类的功能,使其无效。因此在版本升级时就不会遇到地址解释出错的问题了。

在重启iPhone以后升级就没问题了。

开始还是无法接受iOS7的平面化风格(现在流行把东西压扁吗?),后来在Xcode5上用多了模拟器,感觉iOS7给人一种小清新的清爽感觉,相比之下iOS6的界面太拥挤了。还是挺喜欢iOS7的,支持iOS7。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios7
相关文章推荐