"Could not find Developer Disk Image" 运行 错误

"Could not find Developer Disk Image" run error

当我尝试 运行 已连接 iPhone 上的应用程序时,出现错误:"Could not find Developer Disk Image" 我现在 不是 注册的 Apple Developer,但是在 xcode 7 中你不需要那个,对吗? 我刚刚将 xcode 更新到 7.2.1 版,我的 iPhone(6 加)是 运行ning iOS 9.3

Xcode 7.2.1目前最多只支持iOS 9.2

9.3 处于测试阶段,需要 Xcode 7.3,后者目前也处于测试阶段。您可以从开发人员门户下载。您无需成为付费开发人员即可执行此操作。

与运行在模拟器上运行您的项目相反,当您在设备上运行它时,您必须确保您的Xcode版本支持测试版你有(很可能不会)。

您可以轻松地检查您的目标并单击 "General" 选项卡。在 "Deployment Info" 部分下, select "Deployment Target" 下拉菜单,您将看到您的 Xcode 版本支持的版本(如下所示):

最简单的方法是更新您的 OS 和 XCode,但如果您有一些理由坚持使用 Yosemite 10.10.5 Xcode 7.2.1,您可以使用 to make it work。 只需下载 Xcode 7.3.1 GM 种子,这里是您需要复制和替换旧文件的文件。

  1. /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/version.plist
  2. /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
  3. /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.3 (13E230)

这对我有用。

要 运行 您的项目从最新的 Xcode 版本到最新的 iOS 设备,请按照以下步骤操作:

转到 Finder -> 应用程序 -> 右键单击​​最新的 Xcode 版本 -> select 显示包内容 -> 开发人员 -> 平台 -> iPhoneOS.platform -> DeviceSupport - > 复制最新版本文件夹并粘贴到旧 Xcode 的相同位置,即旧 Xcode.

的 DeviceSupport 文件夹中

然后重新启动 Xcode。