Xcode8下载iOS9.3模拟器失败

Xcode8 download iOS 9.3 Simulator fail

下载了很多次,有时提示网络问题导致下载失败,有时提示"Could not download and install iOS 9.3 Simulator. Failed to mount image: no mountable file systems"。

我试过从别的电脑copy安装模拟器,把路径“~/Library/Developer/CoreSimulator/Devices”的文件copy过来全部覆盖,还是无效

如果您在不同的机器上下载了其他模拟器,您可以复制它们。

  1. 转到/Library/Developer/CoreSimulator/Profiles/Runtimes
  2. 右键单击所需的运行时并select "Compress <name>.simruntime"。
  3. 将 ZIP 空投到您的另一台机器。
  4. 将 ZIP 移动到 /Library/Developer/CoreSimulator/Profiles/Runtimes
  5. 双击解压。 (我建议在解压缩时关闭 Xcode 和模拟器)。

您遇到的错误可能是下载损坏造成的。可能有代理服务器或您的网络连接有问题。

您可以关闭 Xcode,清除 ~/Library/Caches/com.apple.dt.Xcode/Downloads,然后重新打开 Xcode。这应该使它重新下载索引并更新其可下载项目列表。