xcode 找不到开发者磁盘映像 iOS 10

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

Could not find Developer Disk Image iOS 10

iphonexcodeios10

提问by CGR

I have updated my iOS device to iOS 10, now Xcode says "Could not find Developer Disk Image" while trying to run on iPhone using Xcode 7.3.1 How can I fix the problem and make Xcode support iOS 10 devices?

我已将我的 iOS 设备更新到 iOS 10,现在 Xcode 在尝试使用 Xcode 7.3.1 在 iPhone 上运行时显示“找不到开发人员磁盘映像” 如何解决问题并使 Xcode 支持 iOS 10 设备?

回答by Bogy

If you want to develop with Xcode 7 on your iOS10 device :

如果您想在 iOS10 设备上使用 Xcode 7 进行开发:

  1. Rename your Xcode.app to Xcode7.app and download Xcode 8 from the app store.
  2. Run Xcode 8 once to install it.
  3. 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:
  1. 将您的 Xcode.app 重命名为 Xcode7.app 并从应用商店下载 Xcode 8。
  2. 运行 Xcode 8 一次以安装它。
  3. 打开终端并使用以下命令创建从 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

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

Note : This works for Xcode 9 and above

注意:这适用于 Xcode 9 及更高版本

Source

来源

UPDATE 2018:
If you want to use Xcode 9 with iOS 12:

2018 年更新:
如果您想在 iOS 12 中使用 Xcode 9:

  1. Download Xcode 10 (still in beta right now)
  2. Put it in the Application folder as Xcode-beta.app
  3. Open the terminal and use the command below:
  1. 下载 Xcode 10(目前仍处于测试阶段)
  2. 将它作为 Xcode-beta.app 放在 Application 文件夹中
  3. 打开终端并使用以下命令:

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0\ (16A5354b)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0\ (16A5354b)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0

回答by CGR

As holex says installing Xcode 8solves the problem

正如holex所说,安装Xcode 8解决了这个问题

回答by Aashish

You may try downloading a Developer Disk Image for the required iOS version, as of your mobile device; If you only want a quick and simple solution..

您可以尝试从您的移动设备下载所需 iOS 版本的开发者磁盘映像;如果您只想要一个快速简单的解决方案..

You need to goto:

你需要去:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneO??S.platform/DeviceSup??port/

and paste the Developer Disk Image you just manually downloaded.

并粘贴您刚刚手动下载的开发人员磁盘映像。