简体   繁体   English

缺少 Xcode 10.3 中的 iOS 9 模拟器

[英]iOS 9 Simulator in Xcode 10.3 missing

I am unable to download and install a iOS 9 simulator in current Xcode.我无法在当前的 Xcode 中下载和安装 iOS 9 模拟器。

This is driving me nuts.这让我发疯。

The Release notes for Xcode 10.3 say that it supports on-device debugging for iOS 8 and later ( https://developer.apple.com/documentation/xcode_release_notes/xcode_10_3_release_notes/ ). Xcode 10.3 的发行说明说它supports on-device debugging for iOS 8 and later ( https://developer.apple.com/documentation/xcode_release_notes/xcode_10_3_release_notes/ )。 So I suppose that should include iOS 9 simulators?所以我想应该包括 iOS 9 模拟器?

but it's not available to download for me:但我无法下载:

Xcode截图

What I tried:我试过的:

Apple seems to have a history of removing simulators without announcing it.苹果似乎有在没有宣布的情况下删除模拟器的历史。

Anyway, the solution was quite simple:无论如何,解决方案非常简单:

  • Download Xcode 10.2.1 and start it下载 Xcode 10.2.1 并启动它
  • Download and install the iOS 9 simulator in preferences在首选项中下载并安装 iOS 9 模拟器
  • Quit and remove Xcode 10.2.1退出并删除 Xcode 10.2.1
  • Start Xcode 10.3 and use iOS 9 simulator启动 Xcode 10.3 并使用 iOS 9 模拟器

The Simulator for iOS 9.3 requires a 32-bit environment, so this only works up to macOS 10.14 (Mojave). iOS 9.3 模拟器需要 32 位环境,因此这仅适用于 macOS 10.14 (Mojave)。 It das not work for 10.15 and above!它不适用于 10.15 及更高版本! One solution on the Intel based Macs is:基于 Intel 的 Mac 上的一种解决方案是:

  • install and run a Mojave VM安装并运行 Mojave VM
  • install Xcode 10.2.1安装 Xcode 10.2.1
  • install under Windows/Devices and Simulators iPhone4S and select iOS 9.3在 Windows/Devices and Simulators iPhone4S 下安装并选择 iOS 9.3
  • update to Xcode 10.3更新到 Xcode 10.3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM