带有 MacOS 12.0.1 的 Xcode 13.1 无法创建 iPhone 5s 模拟器

Posted

技术标签:

【中文标题】带有 MacOS 12.0.1 的 Xcode 13.1 无法创建 iPhone 5s 模拟器【英文标题】:Xcode 13.1 with MacOS 12.0.1 cannot create iPhone 5s simulator 【发布时间】:2021-11-02 01:03:19 【问题描述】:

我通过单击顶部的模拟器下拉菜单、添加其他模拟器、转到模拟器选项卡并单击左下角的加号来到达这里。

但如果我点击创建,就会发生这种情况。

如果我尝试下载像 ios 11.4 这样的旧运行时,它不会像以前那样显示在操作系统版本列表中。有人知道自 Xcode 12.5.1 和 MacOS 11 以来是否发生了变化?感谢您的任何建议。

【问题讨论】:

5S上运行的最新版本好像是iOS 12,你试过用那个吗? 是的,我也尝试了 12,但同样不幸的是,它在安装后没有显示在列表中。 【参考方案1】:

如果您在终端中运行命令xcrun simctl list runtimes,您将看到类似于此的输出:

== Runtimes ==
iOS 11.4 (11.4 - 15F79) - com.apple.CoreSimulator.SimRuntime.iOS-11-4 (unavailable, The iOS 11.4 simulator runtime is not supported on hosts after macOS 11.99.0.)
iOS 12.0 (12.0 - 16A366) - com.apple.CoreSimulator.SimRuntime.iOS-12-0 (unavailable, The iOS 12.0 simulator runtime is not supported on hosts after macOS 11.99.0.)
iOS 15.2 (15.2 - 19C51) - com.apple.CoreSimulator.SimRuntime.iOS-15-2
tvOS 15.2 (15.2 - 19K50) - com.apple.CoreSimulator.SimRuntime.tvOS-15-2
watchOS 8.3 (8.3 - 19S51) - com.apple.CoreSimulator.SimRuntime.watchOS-8-3

根据您在系统上安装的模拟器,您的输出可能会有所不同。

看起来,某些版本的 iOS 与 macOS 12+ 不兼容。

即使您尝试从终端执行此操作,例如:

xcrun simctl create 'iPhone 5s (12.0)' com.apple.CoreSimulator.SimDeviceType.iPhone-5s com.apple.CoreSimulator.SimRuntime.iOS-12-0

你会得到如下错误:

Unable to create a device for device type: iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s), runtime: iOS 12.0 (12.0 - 16A366) - com.apple.CoreSimulator.SimRuntime.iOS-12-0 (unavailable, The iOS 12.0 simulator runtime is not supported on hosts after macOS 11.99.0.)
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=401):
The iOS 12.0 simulator runtime is not available.
The iOS 12.0 simulator runtime is not supported on hosts after macOS 11.99.0.
The iOS 12.0 simulator runtime is not supported on macOS 12.0.1

我还没有找到兼容的 iOS 模拟器的列表,也没有解决方法。

【讨论】:

以上是关于带有 MacOS 12.0.1 的 Xcode 13.1 无法创建 iPhone 5s 模拟器的主要内容,如果未能解决你的问题,请参考以下文章

为啥 Xcode 不能附加到某些程序?

无法运行 latexindent macOS Monterey 12.0.1

Unity IOS平台打包流程

macOS硬件检测和系统维护工具TechTool Pro v12.0.1

QT 中的 QSlider 在新的 MacOS Monterey (v12.0.1) 中行为不端。任何解决方法?

更新 MacOS 和 Xcode 后 Xcode 8.1“找不到匹配的配置文件”