【问题标题】:Could not find Developer Disk Image iOS 10找不到开发者磁盘映像 iOS 10
【发布时间】:2016-09-19 15:02:43
【问题描述】:

我已将我的 iOS 设备更新到 iOS 10,现在 Xcode 在尝试使用 Xcode 7.3.1 在 iPhone 上运行时显示“找不到开发者磁盘映像” 如何解决问题并让 Xcode 支持 iOS 10 设备?

【问题讨论】:

  • Xcode 8 是你在 iOS10 上开发所需要的。

标签: iphone xcode ios10


【解决方案1】:

如果您想在 iOS10 设备上使用 Xcode 7 进行开发:

  1. 将您的 Xcode.app 重命名为 Xcode7.app 并从应用商店下载 Xcode 8。
  2. 运行一次 Xcode 8 进行安装。
  3. 打开终端并使用以下命令创建从 Xcode 8 Developer Disk Image 10.0 到 Xcode 8 Developer Disk Image 文件夹的符号链接:

ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ (14A345)/ /Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform /DeviceSupport/10.0

注意:这适用于 Xcode 9 及更高版本

Source

2018 年更新:
如果您想在 iOS 12 中使用 Xcode 9:

  1. 下载 Xcode 10(目前仍处于测试阶段)
  2. 将其作为 Xcode-beta.app 放在 Application 文件夹中
  3. 打开终端并使用以下命令:

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0\ (16A5354b)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS .platform/DeviceSupport/12.0

【讨论】:

  • 复制文件夹:10.0 (14A345) from path: Xcode 8 -> Show Package Contents, Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 并将10.0 (14A345) 文件夹粘贴到 Xcode 7 中路径 Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 和...就像一个魅力!谢谢
  • 当然,复制/粘贴10.0 (14A345) 文件夹也可以,但是如果更新,您将失去空间,并且您将无法从 Xcode 获取最后一个磁盘映像。
  • 这是对我有用的命令(根据您重命名它们的方式更改 Xcode.app 名称 - 在我的例子中,我有 Xcode8.app 用于 Xcode 8 和 Xcode.app 用于 Xcode 7.3。 1):ln -s /Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
  • 对于 xcode 8.2.1 和 xcode 7.3.1 你可以这样做 "ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.2\ (14C89) //Applications/Xcode7.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/"
【解决方案2】:

正如holex所说,安装Xcode 8可以解决问题

【讨论】:

    【解决方案3】:

    您可以尝试在您的移动设备上下载所需 iOS 版本的开发者磁盘映像; 如果您只想要一个快速简单的解决方案..

    你需要转到:

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneO‌​S.platform/DeviceSup‌​port/
    

    并粘贴您刚刚手动下载的开发者磁盘映像。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多