Xcode 错误“找不到开发者磁盘映像" [英] Xcode error "Could not find Developer Disk Image"

查看:31
本文介绍了Xcode 错误“找不到开发者磁盘映像"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

找不到开发者磁盘映像

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

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

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

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.

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

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.

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

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

推荐答案

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

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

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

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

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

We can solve this issue by following the below steps:

方法一:-

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

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

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

    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.

    就我而言,12.1 是最新的文件夹.现在它将生成该版本的副本,如 12.1 副本或最新版本(文件夹)副本就你而言.

    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.

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

    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.

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

  • 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**
    

  • 方法二:-

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

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

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

    We can solve this issue by following the below steps:

    • 右键单击 Xcode 8 或更新版本的 Xcode,选择显示包内容"、内容"强>", "开发人员",平台"、iPhoneOS.Platform"、设备支持"
    • 复制 10.0 文件夹(或更高版本的文件夹).
    • 返回Finder,再次选择应用程序
    • 右键单击 Xcode 7.3 或您的 Xcode 版本,现在选择显示包内容"、内容"、开发人员"、平台",iPhoneOS.Platform"、设备支持"
    • 粘贴 10.0 文件夹(或更高版本的文件夹).
    • Right click on Xcode 8 or 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 Finder select Applications again
    • 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 有了一个新的开发者磁盘映像.现在关闭查找器,并退出您的 Xcode.打开你的 Xcode,错误就会消失.现在您可以将最新的设备连接到旧的 Xcode 版本.

    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 的开发人员磁盘映像:-

    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

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

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

    这篇关于Xcode 错误“找不到开发者磁盘映像"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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