ios “找不到开发者磁盘映像”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33314733/
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
"Could not find Developer Disk Image"
提问by Pulkit sharma
Recently I've been getting the error: "Could not find Developer Disk Image"
最近我收到错误消息:“找不到开发人员磁盘映像”
I think this happens since I have updated iOS to 9.1 on the iPhone. How can I fix the problem and make Xcode support iOS 9.1 devices?
我认为这是因为我在 iPhone 上将 iOS 更新到了 9.1。如何解决问题并使 Xcode 支持 iOS 9.1 设备?
采纳答案by Aamir
1) I have experienced same issue, my Xcode version was 7.0.1, and I updated my iPhone to version 9.2, then upon using Xcode, my iPhone was shown in the section of unavailable device. Just like in image below:
1) 我遇到了同样的问题,我的Xcode 版本是 7.0.1,我将我的iPhone更新到版本 9.2,然后在使用 Xcode 时,我的 iPhone 显示在不可用设备部分。就像下图一样:
2) But then I somehow managed to select my iPhone by clicking at
Product -> Destination -> Unavailable Device
2)但后来我以某种方式设法通过单击“
产品”->“目的地”->“不可用设备” 来选择我的 iPhone
3) But that didn't solved my problem, and it started showing:
3)但这并没有解决我的问题,它开始显示:
Could not find Developer Disk Image
找不到开发者磁盘映像
Solution) Then finally I downloaded latest version of Xcode version 7.2from hereand everything has worked fine for me.
解决方案)最后我从 这里下载了最新版本的Xcode 7.2 版,一切对我来说都很好。
Update:Whenever version of iPhone device is higher than version of Xcode, you may experience same issue, so you should update your Xcode version to remove this error.
更新:每当 iPhone 设备的版本高于 Xcode 的版本时,您可能会遇到相同的问题,因此您应该更新您的 Xcode 版本以消除此错误。
回答by Caleb Kleveter
Xcode 7.0.1 and iOS 9.1 are incompatible. You will need to update your version of Xcode via the Mac app store.
Xcode 7.0.1 和 iOS 9.1 不兼容。您需要通过 Mac 应用商店更新您的 Xcode 版本。
If your iOS version is lower then the Xcode version on the other hand, you can change the deployment target for a lower version of iOS by going to the General Settings and under Deployment set your Deployment Target:
另一方面,如果您的 iOS 版本低于 Xcode 版本,您可以通过转到“常规设置”并在“部署”下设置您的部署目标来更改较低版本 iOS 的部署目标:
Note:
笔记:
Xcode 7.1 does not include iOS 9.2 beta SDK. Upgraded to Xcode to 7.2 beta by downloading it from the Xcode website.
Xcode 7.1 不包含 iOS 9.2 beta SDK。通过从Xcode 网站下载 Xcode 升级到 7.2 beta 。
回答by Mandeep Singh
I am facing the same issue on Xcode 7.3 and my device version is iOS 10
.
我在Xcode 7.3 and my device version is iOS 10
.
This error is shown when your Xcode
is old and the related device you are using is updated to latest version. First of all, install the latest Xcode version.
当您Xcode
老了并且您使用的相关设备更新到最新版本时,会显示此错误。首先,安装最新的Xcode版本。
We can solve this issue by following the below steps:-
我们可以按照以下步骤解决此问题:-
- Open Finder select Applications
- Right click on Xcode 8, 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, select "Show Package Contents", "Contents", "Developer", "Platforms", "iPhoneOS.Platform", "Device Support"
- Paste the 10.0 folder
- 打开 Finder 选择应用程序
- 右键单击 Xcode 8,选择“显示包内容”、“内容”、“开发者”、“平台”、“iPhoneOS.Platform”、“设备支持”
- 复制 10.0 文件夹(或更高版本的更高版本)。
- 返回 Finder 再次选择应用程序
- 右键单击 Xcode 7.3,选择“显示包内容”、“内容”、“开发者”、“平台”、“iPhoneOS.Platform”、“设备支持”
- 粘贴 10.0 文件夹
If everything worked properly, 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
版本。
Thanks
谢谢
回答by Solomon
For the case XCode version is lower than iOS device's image, you can either copy the disk image from other already updated XCode(or maybe the internet) or upgrade your XCode.
对于 XCode 版本低于 iOS 设备映像的情况,您可以从其他已更新的 XCode(或互联网)复制磁盘映像或升级您的 XCode。
The image is a folder with size about over 10MB, and place(find or put it) here under this path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSup??port/".
该图像是一个大小超过 10MB 的文件夹,并将(查找或放置)放在此路径“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSup??port/”下。
To enter Xcode.app package, hold control key and click on Xcode.app, you will find additional option like show package content or some word similar. Choose this option and you will enter Xcode.app like entering a normal folder.
要进入 Xcode.app 包,按住 control 键并单击 Xcode.app,您会发现附加选项,如显示包内容或一些类似的词。选择此选项,您将像进入普通文件夹一样进入 Xcode.app。
Hope it's helpful and good luck!
希望它有帮助并祝你好运!
回答by Usman Nisar
Simply updated Xcode. Solved my problem
简单地更新了Xcode。解决了我的问题
回答by Swati Gupta
To run the project to latest devices from the older versions of Xcode, follow the following steps :
要将项目从旧版本的 Xcode 运行到最新设备,请按照以下步骤操作:
Go To Finder -> Applications -> Right Click on latest Xcode version -> select show package content -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport -> Copy the latest version folder and paste at the same location of your old Xcode i.e in the DeviceSupport folder of your old Xcode.
转到 Finder -> 应用程序 -> 右键单击最新的 Xcode 版本 -> 选择显示包内容 -> 开发人员 -> 平台 -> iPhoneOS.platform -> DeviceSupport -> 复制最新版本文件夹并粘贴到旧版本的相同位置Xcode 即在旧 Xcode 的 DeviceSupport 文件夹中。
回答by Vladimir
Older XCode version has no developer disk imagefor newer iOS version. If you don't want upgrade XCode you can find ready developer disk images for latest versions in this answer: https://stackoverflow.com/a/39865199/286361
较旧的 XCode 版本没有用于较新的 iOS 版本的开发人员磁盘映像。如果您不想升级 XCode,您可以在此答案中找到最新版本的现成开发人员磁盘映像:https: //stackoverflow.com/a/39865199/286361
回答by sgr
This solution works only if you create in Xcode 7 the directory "10.0" and you have a mistake in your sentence:
只有当您在 Xcode 7 中创建目录“10.0”并且您的句子中有错误时,此解决方案才有效:
ln -s /Applications/Xcode_8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0 \(14A345\) /Applications/Xcode_7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
回答by Bogy
If you want to develop with Xcode 7 on your iOS10 device :
(Note: you can adapt this command to other Xcode and iOS versions)
如果你想在你的 iOS10 设备上使用 Xcode 7 进行开发:(
注意:你可以将此命令调整到其他 Xcode 和 iOS 版本)
- Rename your Xcode.app to Xcode7.app and download Xcode 8 from the app store.
- Run Xcode 8 once to install it.
Open the terminal and create a symbolic link from Xcode 8 Developer Disk Image 10.0 to Xcode 8 Developer Disk Image folder using this command:
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.app 重命名为 Xcode7.app 并从应用商店下载 Xcode 8。
- 运行 Xcode 8 一次以安装它。
打开终端并使用以下命令创建从 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