iOS Xcode 10 中的 9.3 模拟器

iOS 9.3 simulator in Xcode 10

我需要在 iPhone 4S 上测试我的应用程序。 在 Xcode 10 中,我转到了 Xcode > 首选项 > 组件 > 模拟器 我已经下载 "iOS 9.3 Simulator"

但我在 运行 按钮旁边的模拟器列表中没有看到它。

知道如何在 Xcode 10 中 运行 这个 iOS 9.3 模拟器吗?

将部署目标保持在 9.x,然后导航至:

Xcode > 首选项 > 组件

您将在此处看到要安装的其他模拟器列表。这些有时需要很长时间才能下载,我发现 this 文章对加快下载过程非常有帮助。

您必须使用模拟器 os 版本创建模拟器。您只下载了iOS版软件。

要添加设备,请执行以下操作:Window > 设备和模拟器。 (或 cmd + shift + 2)

然后在列表底部按 + 图标。这应该允许您添加设备 运行 选择的 iOS 版本。

iOS 9.3 (9.3 - 13E233) - com.apple.CoreSimulator.SimRuntime.iOS-9-3 (unavailable, The iOS 9.3 simulator runtime is not supported on hosts after macOS 10.14.99.) (unavailable, The iOS 9.3 simulator runtime is not supported on hosts after macOS 10.14.99.)