带有 iOS 9 设备的 Xcode 7 错误:设备不可用(找不到开发者磁盘映像)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32542036/
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
Xcode 7 with iOS 9 device Error: device unavailable (Could not find a developer disk image)
提问by Gijo Varghese
After updating my iPad to iOS 9 public beta, I am getting an error while trying the run the app in my iPad. When I select the iPad as destination, it says "iPad (Unavailable) or Could not find developer disk image. How can I fix this? Any solution?
将我的 iPad 更新到 iOS 9 公开测试版后,尝试在我的 iPad 中运行该应用程序时出现错误。当我选择 iPad 作为目的地时,它会显示“iPad(不可用)或找不到开发者磁盘映像。我该如何解决这个问题?任何解决方案?”
采纳答案by soulshined
If you are using the Xcode 7 GM build version 7A218, the chances are that you accidentally downloaded iOS 9.1 (13B5110e) as opposed to the iOS 9 GM build (13A340). I did the same thing don't worry. They are too close to each other on the downloads page :0
如果您使用的是 Xcode 7 GM 构建版本7A218,则您可能不小心下载了 iOS 9.1 ( 13B5110e) 而不是 iOS 9 GM 构建版本 ( 13A340)。我做了同样的事情别担心。它们在下载页面上彼此靠得太近:0
You can check which version you have on your device by simply going to your device Settings > General > About > Version
您只需转到您的设备设置 > 通用 > 关于 > 版本,即可查看您设备上的版本
All you have to do is downloadthe correct iOS 9 GM build and go to iTunes. Click on your device. In the summary tab, OPTION+ Right Click "Check for Update" and restore your device by navigating to the iOS 9 GM build finder location. Noteby selecting "Check for Update" you will notlose any settings or data on your device. In other words, it is not a restore
您所要做的就是下载正确的 iOS 9 GM 版本并转到 iTunes。单击您的设备。在摘要选项卡中,OPTION+ 右键单击“检查更新”并通过导航到 iOS 9 GM 构建查找器位置来恢复您的设备。请注意,通过选择“检查更新”,您不会丢失设备上的任何设置或数据。换句话说,它不是恢复
However, if you are using Xcode 7.1 build version (7B60) iOS 9.1 is supported
但是,如果您使用的是 Xcode 7.1 构建版本 ( 7B60),则支持 iOS 9.1
回答by Septronic
I had the same problem and all I had to do was to update my XCode to 7.1. After that it worked. Your Xcode has to be updated to the latest version.
我遇到了同样的问题,我所要做的就是将我的 XCode 更新到 7.1。在那之后它起作用了。您的 Xcode 必须更新到最新版本。
回答by Scott Oseychik
This is also encountered when trying to use Xcode 6.4 against an iOS 9.0.x device. Here's how you can workaround it and get Xcode 6.4 to recognize your iOS 9.0.x devices:
尝试对 iOS 9.0.x 设备使用 Xcode 6.4 时也会遇到这种情况。您可以通过以下方法解决此问题并让 Xcode 6.4 识别您的 iOS 9.0.x 设备:
- Download Xcode 7.0.1:
- 下载 Xcode 7.0.1:
Open Xcode_7.0.1.dmg and drag the Xcode.app to your desktop
Right-click, Show package contents, navigate into /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Copy the "9.0 (13A340)" directory to the existing DeviceSupport directory for your Xcode 6.4 install. For example: ~/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Restart Xcode 6.4 (if it was running), and your device running iOS 9.0.x should now show as a recognized device.
打开 Xcode_7.0.1.dmg 并将 Xcode.app 拖到桌面
右键单击,显示包内容,导航到 /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
将“9.0 (13A340)”目录复制到 Xcode 6.4 安装的现有 DeviceSupport 目录。例如:~/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
重新启动 Xcode 6.4(如果它正在运行),运行 iOS 9.0.x 的设备现在应该显示为可识别的设备。
回答by Ptah
Update Xcode. If it not help: go to
更新 Xcode。如果没有帮助:去
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
If you don't find there your device iOS version, you could try to copy last one and rename it to which one do you need, restart XCode and try to compile, it works for me.
如果你在那里没有找到你的设备 iOS 版本,你可以尝试复制最后一个并将其重命名为你需要的那个,重新启动 XCode 并尝试编译,它对我有用。
回答by Brijesh Shiroya
I solve this problem by just simple xcoderestart.
我通过简单的xcode重启解决了这个问题。
回答by Jinhuan Li
Apple just released the new Xcode 7.1 which support iOS 9.1. Update Your Xcode and everything will be fine.
Apple 刚刚发布了支持 iOS 9.1 的新 Xcode 7.1。更新您的 Xcode,一切都会好起来的。
回答by Aamir
I have experienced same issue
我遇到了同样的问题
Could not find Developer Disk Image
找不到开发者磁盘映像
1) 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 section of unavailable device. Just like in image below:
1) 我Xcode version was 7.0.1
和我更新了我的iPhone to version 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 doesn't solved my problem and started showing
3)但这并没有解决我的问题并开始显示
Could not find Developer Disk Image
找不到开发者磁盘映像
Solution) Then finally i downloaded latest version of Xcode version 9.2
from https://developer.apple.com/downloads/and everything worked fine for me.
解决方案)最后我Xcode version 9.2
从 https://developer.apple.com/downloads/下载了最新版本,一切对我来说都很好。
回答by Nic Scozzaro
For me the problem was that I just needed to open my phone and click "Trust Computer"
对我来说,问题是我只需要打开手机并单击“信任计算机”
回答by RedSIght
I had already update to newest version Xcode (7.0.1) but still can't build on iPod touch 5 in iOS 9.1(13B143).After copy 9.1 (13B137) folder from my colleague to DeviceSupport folder in Xcode, it works! Not sure it would create some side effects.
我已经更新到最新版本的 Xcode (7.0.1),但仍然无法在 iOS 9.1(13B143) 的 iPod touch 5 上构建。从我的同事复制 9.1 (13B137) 文件夹到 Xcode 中的 DeviceSupport 文件夹后,它工作了!不确定它会产生一些副作用。
回答by Anthony Akentiev
I had XCode 7.0.1 installed + iOS 9.1 (13B143).
我安装了 XCode 7.0.1 + iOS 9.1 (13B143)。
XCode had shown me "unsupported device" / "could not find developer disk image" in Devices windows until i updated my XCode to version 7.1. Everything works well now.
在我将 XCode 更新到 7.1 版之前,XCode 在“设备”窗口中向我显示了“不受支持的设备”/“找不到开发人员磁盘映像”。现在一切正常。