直接下载Xcode模拟器 [英] Download Xcode simulator directly

查看:499
本文介绍了直接下载Xcode模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天已经下载了Xcode 6.2,它取代了以前的Xcode 6.1 现在使用模拟器7.1& 8.1它要求下载两个模拟器,但是由于某些原因,尝试4-5次后,它在下载中显示网络问题或请求超时(注意:在n/w诊断中,它显示网络正常工作后)

I have downloaded Xcode 6.2 today which replaced previous Xcode 6.1 now to use simulator 7.1 & 8.1 it asks to download both simulators , but for some reason after trying 4-5 times it shows network issues in downloading or request time out (note: in n/w diagnostic after it shows net is working properly)

所以有直接链接可以直接下载模拟器包,或者至少可以显示百分比/大小的进度,而不是一个栏

so is there any direct link from where i can download the simulator package directly or somewhere at least it shows progress in percentage/size instead just a bar

如果不可能,我已经阅读了有关将旧的模拟器复制到新的Xcode的信息,那么如何将旧的模拟器(7.1和8.1)放置在Xcode 6.2中,使其可以直接工作而无需再次下载

if it's not possible i have read about copying the older simulator to new Xcode so how can i place the old simulator(7.1 & 8.1) in Xcode 6.2 that it works directly without downloading again

推荐答案

单击Xco​​de中的下载"没有任何作用-进度条没有进展(是否使它成为回归条?).

Clicking on Download in Xcode didn't do anything - the progress bar did not progress (does that make it a regress bar?).

这对我有用:

  1. 打开Xcode,打开首选项,转到下载"部分.

  1. Open Xcode, open preferences, go to the Downloads section.

打开控制台应用程序,清除控制台.

Open the Console App, clear the console.

返回到Xcode首选项.开始下载模拟器,然后取消它.

Go back to the Xcode preferences. Start the simulator download, then cancel it.

现在在控制台中,您将看到有关下载URL取消的信息.

Now in the Console, you will see something about the cancellation with the download URL.

从控制台复制URL.然后在终端中某个合适的暂存文件夹中,下载它:

Copy the URL from the Console. Then in Terminal in some suitable scratch folder, download it:

curl [the url you copied] -O(字母O,不是零)

  • 最后,将此文件复制到〜/Library/Caches/com.apple.dt.Xcode/Downloads
    删除所有* .dvtdownloadableindex文件(也许没关系,但是我删除了它们).

  • Finally, copy this file to ~/Library/Caches/com.apple.dt.Xcode/Downloads
    Remove all *.dvtdownloadableindex files (maybe it doesn't matter, but I removed them).

    在Xcode的下载"部分中,再次启动Simulator下载,它会找到您下载的文件并安装.

    In Xcode, in the Downloads section, start the Simulator download again, it should find the file you downloaded and install it.

    那是多么容易!只需7个步骤,哈哈!

    How easy was that! Only 7 steps, hah!

    这篇关于直接下载Xcode模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆