ios Xcode 错误“找不到开发者磁盘映像”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30736932/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 06:17:42  来源:igfitidea点击:

Xcode error "Could not find Developer Disk Image"

iosiphonexcode

提问by Nathan Kramer

When attempting to run a build on a connected iOS device in Xcode I get the error:

尝试在 Xcode 中连接的 iOS 设备上运行构建时,出现错误:

Could not find Developer Disk Image

找不到开发者磁盘映像

Screenshot of error message

错误信息截图

I saw that there was a public beta for Xcode, so I installed it.

我看到 Xcode 有一个公开测试版,所以我安装了它。

One of the new features is that you don't need to have a Developer Program Account Dingus to upload your app directly to your iPhone.

其中一项新功能是您无需拥有开发者计划帐户 Dingus 即可将您的应用程序直接上传到您的 iPhone。

However, on my iPhone 4s, I also did a public beta update to iOS 8.4, problem being, that there's no Developer Disk Image available for it.

但是,在我的 iPhone 4s 上,我还对 iOS 8.4 进行了公开测试版更新,问题是没有可用的开发者磁盘映像。

Where do I to find it or how can it be fixed?

我在哪里可以找到它或如何修复它?

采纳答案by Mandeep Singh

I am facing the same issue on Xcode 7.3 or Older versionof your Xcode and my device version is iOS 10 or newer version of your OS.

我在Xcode 7.3 或更旧版本的 Xcode上遇到了同样的问题,我的设备版本是 iOS 10 或更高版本的操作系统。

This error is shown when your Xcode is old and the related device you are using is updated to latest version.

当您的 Xcode 较旧并且您正在使用的相关设备已更新到最新版本时,会显示此错误。

We can solve this issue by following the below steps:

我们可以按照以下步骤解决这个问题:

Method 1:-

方法一:-

  • Right click on Xcode 7.3 or version of your Xcode, now select "Show Package Contents", "Contents", "Developer", "Platforms","iPhoneOS.Platform", "Device Support".

  • Now check there is latest version of developer disk image(folder) like 12.1 or newest version(folder) in your case. Copy the latest version and Paste in the same Folder Device Support.

  • 右键单击Xcode 7.3 或您的 Xcode 版本,现在选择“显示包内容”、“内容”、“开发人员”、“平台”、“ iPhoneOS.Platform”、“设备支持”。

  • 现在检查您的情况是否有最新版本的开发人员磁盘映像(文件夹),如 12.1 或最新版本(文件夹)。复制最新版本并粘贴到同一文件夹设备支持中。

enter image description here

在此处输入图片说明

  • In my case I have 12.1 is the latest folder. Now it will generate the copy of that version like 12.1 copy or newest version(folder)copy in your case.

  • Now Change the name of copy folder to your latest version of iPhone like. In mine case, I have 12.1(Folder)copy and rename it into 12.4. As you can see in the above screenshot. You can change it according to your latest version of phone. I need it for 12.4 so i just rename the folder to 12.4.

  • Now your Xcode has a new developer disk image. Close the finder now, and quit your Xcode. Open your Xcode and the error will be gone. Now you can connect your latest device to old Xcode versions.

                          **OR**
    
  • 就我而言,我有 12.1 是最新的文件夹。现在它将生成该版本的副本,例如 12.1 副本或最新版本(文件夹)副本。

  • 现在将复制文件夹的名称更改为最新版本的 iPhone,例如。在我的情况下,我有 12.1(文件夹)副本并将其重命名为 12.4。正如您在上面的屏幕截图中看到的那样。您可以根据您的最新手机版本进行更改。我需要 12.4,所以我只是将文件夹重命名为 12.4。

  • 现在您的 Xcode 有了一个新的开发者磁盘映像。现在关闭查找器,并退出您的 Xcode。打开你的 Xcode,错误就会消失。现在您可以将最新的设备连接到旧的 Xcode 版本。

                          **OR**
    

Method 2:-

方法二:-

First of all, download the latest Xcode Version. No Need to install the latest Xcode.

首先,下载最新的Xcode版本。无需安装最新的 Xcode。

We can solve this issue by following the below steps:

我们可以按照以下步骤解决这个问题:

  • Right click on Xcode 8or Newer version of your Xcode, select "Show Package Contents", "Contents", "Developer", "Platforms", "iPhoneOS.Platform", "Device Support"
  • Copy the 10.0 folder (or above for later version).
  • Back in Finderselect Applicationsagain
  • Right click on Xcode 7.3 or version of your Xcode, now select "Show Package Contents", "Contents", "Developer", "Platforms", "iPhoneOS.Platform", "Device Support"
  • Paste the 10.0 folder (or above for later version).
  • 右键单击Xcode 8或更新版本的Xcode,选择“显示包内容”、“内容”、“开发人员”、“平台”、“ iPhoneOS.Platform”、“设备支持
  • 复制 10.0 文件夹(或更高版本的更高版本)。
  • 返回Finder再次选择应用程序
  • 右键单击Xcode 7.3 或您的 Xcode 版本,现在选择“显示包内容”、“内容”、“开发人员”、“平台”、“iPhoneOS.Platform”、“设备支持”
  • 粘贴 10.0 文件夹(或更高版本的文件夹)。

Now your Xcode has a new developer disk image. Close the finder now, and quit your Xcode. Open your Xcode and the error will be gone. Now you can connect your latest device to old Xcode versions.

现在您的 Xcode 有了一个新的开发者磁盘映像。现在关闭查找器,并退出您的 Xcode。打开你的 Xcode,错误就会消失。现在您可以将最新的设备连接到旧的 Xcode 版本。

OR

或者

If you can't download the latest Xcode, you can get the latest Developer Disk Image for your Xcode from this link:-

https://github.com/Yatko/iOS-device-support-files

Thanks to Yatko. So that people can download the latest DMGs.

如果您无法下载最新的 Xcode,您可以通过以下链接为您的 Xcode 获取最新的开发者磁盘映像:-

https://github.com/Yatko/iOS-device-support-files

感谢Yatko。以便人们可以下载最新的DMG。

回答by Santhosh Gandhe

For people who would have similar problems in the future, beware that this problem is fundamentally rooted in the mismatch of your iOS version and Xcodeversion.

对于以后会遇到类似问题的人,请注意这个问题的根源在于您的iOS版本和Xcode版本不匹配。

Check the compatibility of iOS and Xcode.

检查 iOS 和 Xcode 的兼容性。

回答by Nicola D.

I personally downloaded Xcode 6.4 beta and 7.0 beta and I was very happy to find the solution by searching "8.4" inside the application folder of the 6.4 beta. By doing this, I found the folder 8.4 (12H4125a)containing the iOS 8.4 image and I copied this folder to the same path of the 7.0 beta. The path is the following:

我个人下载了 Xcode 6.4 beta 和 7.0 beta,我很高兴通过在 6.4 beta 的应用程序文件夹中搜索“8.4”找到解决方案。通过这样做,我找到了8.4 (12H4125a)包含 iOS 8.4 图像的文件夹,并将该文件夹复制到 7.0 测试版的相同路径。路径如下:

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 

When you will reopen Xcode 7 and choose your device, there will be an error message; just click on fix issueand that should do it!

当您重新打开 Xcode 7 并选择您的设备时,会出现一条错误消息;只需点击fix issue,就可以了!

回答by Ryan Brodie

This error occurs when the version of Xcode predates that of the device.

当 Xcode 版本早于设备版本时,会发生此错误。

For example, attempting to run a build on a device running iOS 9.3 in Xcode 7.2 results in this error; Could not find Developer Disk Image.

例如,尝试在 Xcode 7.2 中运行 iOS 9.3 的设备上运行构建会导致此错误;Could not find Developer Disk Image.

Why an error message that actually describes what the hell is going on can't be provided is beyond me (Apple, I'm looking at you ).

为什么不能提供实际描述到底发生了什么的错误消息超出了我的范围(Apple,我在看着你)。

Update to the latest version of Xcode through the App Store or via direct downloadto guarantee interoperability with connected iOS hardware.

通过 App Store 或直接下载更新到最新版本的 Xcode,以保证与连接的 iOS 硬件的互操作性。

回答by onmyway133

If you're using old Xcode and want to run onto devices with new version of iOS, then do this trick. This basically make a symbolic link from iOS Device Support in new Xcode to old Xcode

如果您使用的是旧 Xcode 并希望在具有新版本 iOS 的设备上运行,那么请执行此技巧。这基本上是从新 Xcode 中的 iOS 设备支持到旧 Xcode 的符号链接

https://gist.github.com/steipete/d9b44d8e9f341e81414e86d7ff8fb62d

https://gist.github.com/steipete/d9b44d8e9f341e81414e86d7ff8fb62d

For Xcode 9.0 beta and iOS 11.0 beta (name your Xcode9.appfor Xcode 9 beta and Xcode.appfor Xcode 8)

对于 Xcode 9.0 beta 和 iOS 11.0 beta(为 Xcode 9 beta 和Xcode 8命名Xcode9.appXcode.app

sudo ln -s "/Applications/Xcode9.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5278f\)" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport"

回答by gbk

My problem was with Xcode 7 and Xcode 6.4 beta and iOS 8.4 - device not compatible.

我的问题是 Xcode 7 和 Xcode 6.4 beta 和 iOS 8.4 - 设备不兼容。

In case of the same problem for better understanding how to fix, do next:

如果出现相同问题以便更好地了解如何修复,请执行以下操作:

  1. Go to /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  2. Go to
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSup??port/
  3. Copy folder iOS 8.4 in another folder
  1. 转到 /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  2. 转到
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSup??port/
  3. 将文件夹 iOS 8.4 复制到另一个文件夹中

Enter image description here

在此处输入图片说明

  1. Restart Xcode
  1. 重启Xcode

回答by scurioni

If you have iOS 9.1 on your phone, just download Xcode7.1 beta instead of using GM.

如果您的手机上装有 iOS 9.1,只需下载Xcode7.1 beta 而不是使用 GM。

See Apple's response: Could not find developer disk image for iOS 9.1

请参阅 Apple 的回应:Could not find developer disk image for iOS 9.1

回答by Philip Borges

I got the same error message (Couldn't find developer disk image)after I updated my devices to iOS 9.2, but forgot to update to Xcode 7.2.

将设备更新到 iOS 9.2 后,我收到了相同的错误消息(找不到开发人员磁盘映像),但忘记更新到 Xcode 7.2。

So in my case, the fix was easy:just update to Xcode 7.2 via Mac App Store.

所以就我而言,修复很简单:只需通过 Mac App Store 更新到 Xcode 7.2。

回答by Seva Alekseyev

This message appears when your version of Xcode is too old for the device's version of iOS. Upgrade Xcode to the latest.

当您的 Xcode 版本对于设备的 iOS 版本来说太旧时,会出现此消息。将 Xcode 升级到最新版本。

If the App Store doesn't offer an update for Xcode, upgrade to the latest Mac OS. In the past, Apple has been rather aggressive about dropping support for past versions of Mac OS X in the latest Xcode.

如果 App Store 没有提供 Xcode 更新,请升级到最新的 Mac OS。过去,Apple 一直非常积极地在最新的 Xcode 中放弃对过去版本的 Mac OS X 的支持。

EDIT: yes, this error started popping up all over again. :) Xcode 7.3.1, which is the latest one that's available for MacOS 10.11 (El Capitan), doesn't support iOS 10. You need MacOS Sierra (and possibly a new Mac).

编辑:是的,这个错误又开始出现了。:) Xcode 7.3.1 是适用于 MacOS 10.11 ( El Capitan) 的最新版本,不支持 iOS 10。您需要 MacOS Sierra(可能还有一台新 Mac)。

回答by whyoz

I just got this, and I'm on Xcode 7.2.1... It appeared when I downloaded iOS 9.3. Check your Project -> Base SDK and if it isn't the same or ahead of your device version, then that's the issue. I didn't see anything in the "Updates" section, but when I searched "Xcode" in the App Store it had an update for 7.3.

我刚拿到这个,我在 Xcode 7.2.1 上......它出现在我下载 iOS 9.3 时。检查您的项目 -> 基础 SDK,如果它与您的设备版本不同或高于您的设备版本,那就是问题所在。我在“更新”部分没有看到任何内容,但是当我在 App Store 中搜索“Xcode”时,它有 7.3 的更新。

Upgrading to iOS 9.3 and Xcode 7.3 requires Mac OS X v10.11(El Capitan)for Xcode to run, and that's why auto update isn't upgrading Xcode versions.

升级到iOS 9.3 和 Xcode 7.3 需要Mac OS X v10.11(El Capitan)才能运行 Xcode,这就是自动更新不会升级 Xcode 版本的原因。