Xcode 6:iOS 8.1 无法挂载开发者磁盘映像

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26508036/
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 03:17:35  来源:igfitidea点击:

Xcode 6: iOS 8.1 The Developer Disk Image could not be mounted

iosiphonexcodexcode6

提问by Zaxter

I keep getting this error, whenever I try to run my app on my iphone, which is running iOS 8.1.-

每当我尝试在运行 iOS 8.1 的 iphone 上运行我的应用程序时,我都会收到此错误。-

The Developer Disk Image could not be mounted.

User's iPhone may be running a version of iOS that is not supported by this version of Xcode.

无法安装开发者磁盘映像。

用户的 iPhone 可能正在运行此版本的 Xcode 不支持的 iOS 版本。

I tried restarting my mac and xcode, but problem persists.

我尝试重新启动我的 mac 和 xcode,但问题仍然存在。

回答by Craig Otis

Xcode 6 only contains the iOS 8.0 SDK.

Xcode 6 仅包含 iOS 8.0 SDK。

If you're running iOS 8.1 on your phone, then you'll need to upgrade to Xcode 6.1, which contains the iOS 8.1 SDK.

如果您在手机上运行 iOS 8.1,则需要升级到包含 iOS 8.1 SDK 的Xcode 6.1

回答by Stan James

Download the latest version of Xcodefrom the App Store. I had an early version of XCode 6.1 that lacked the 8.1 SDK. Upgrading to the latest fixed the problem.

从 App Store下载最新版本的 Xcode。我有一个缺少 8.1 SDK 的早期版本的 XCode 6.1。升级到最新解决了这个问题。

回答by Sam

Restarting my phone cleared this for me.

重新启动我的手机为我清除了这个。

It started a day after updating to Xcode 6.1 and phone (4s) to 8.1 worked fine to start with then stopped with this message a day later.

它在更新到 Xcode 6.1 和电话(4s)到 8.1 后一天开始工作正常,然后在一天后停止显示此消息。

回答by mikesalvia

Opening project in Xcode 6.1 then again in 6.0.1 seemed to fix issue, if your project is not ready to be compiled in 6.1!

如果您的项目尚未准备好在 6.1 中编译,则在 Xcode 6.1 中打开项目然后在 6.0.1 中再次打开似乎可以解决问题!

回答by Veeru

Did you check your apps' base version. If the base version is set to 8 and your device is 7, you will probably get this error.

您是否检查了应用程序的基本版本。如果基本版本设置为 8 而您的设备是 7,您可能会收到此错误。

and if your base version, from what i imagine is 8.1 and your device is not updated to 8.1 it wont work either.

如果您的基本版本是 8.1,并且您的设备没有更新到 8.1,那么它也不会工作。

回答by david72

Xcode 6.4 beta would not run iOS 8.3. Switched to Xcode 6.3 fixed the issue. And then when opening it back in 6.4 beta, was working fine.

Xcode 6.4 beta 无法运行 iOS 8.3。切换到 Xcode 6.3 解决了这个问题。然后在 6.4 测试版中打开它时,工作正常。

回答by Ben Thielker

Just ran into this after absentmindedly upgrading my phone to iOS 8.3. Resolution required an upgrade to OS X Yosemite (10.10) before I could update to a version of Xcode that supports that version of iOS.

在心不在焉地将我的手机升级到 iOS 8.3 之后就遇到了这个问题。解决方案需要升级到 OS X Yosemite (10.10),然后才能更新到支持该版本 iOS 的 Xcode 版本。

回答by warfreak92

I have seen this error before in my experience. It means that the Developer Disk image in your Xcode is not compatible with the one in your iOS device that you are trying to run/develop an app with. One of the easiest way to solve this is update your Xcode installation. Another quick trick that I learned with is by copying Developer Disk image versions into Xcode.app's directory.

我以前在我的经验中见过这个错误。这意味着您的 Xcode 中的 Developer Disk 映像与您尝试运行/开发应用程序的 iOS 设备中的映像不兼容。解决此问题的最简单方法之一是更新您的 Xcode 安装。我学到的另一个快速技巧是将 Developer Disk 映像版本复制到 Xcode.app 的目录中。

I earned some copies of different versions of Developer Disk image from various Macbooks that have updated and outdated Developer Disk images. You could download some resources online, extract it and then place the whole directory on your Xcode's installation directory normally located here: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/.

我从各种 Macbook 中获得了一些不同版本的 Developer Disk 映像副本,这些 Macbook 已更新和过时的 Developer Disk 映像。您可以在线下载一些资源,将其解压缩,然后将整个目录放在 Xcode 的安装目录中,通常位于此处:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/.

I hope this helps!

我希望这有帮助!