无法排毒以找到 iPhone X 或早于 iPhone 11 的模拟器
Can't get detox to find iPhone X or simulators older than iPhone 11
接受来自 XCode 的使用 iOS 13 和 iPhone 11 升级的许可后出现此错误。我对 运行 进行排毒测试没问题iPhone 11 台设备使用 "iPhone 11" 作为排毒配置中的名称值。
错误:找不到与 "iPhone X" 匹配的模拟器,运行 'xcrun simctl list' 列出您支持的设备。
建议只写设备类型,不要写iOS版本,例如"iPhone 7"```
运行 xcrun simctl list
和 iPhone X 肯定在那里并启动:
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)
iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)
iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)
iPhone 6s (com.apple.CoreSimulator.SimDeviceType.iPhone-6s)
iPhone 6s Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus)
iPhone SE (com.apple.CoreSimulator.SimDeviceType.iPhone-SE)
iPhone 7 (com.apple.CoreSimulator.SimDeviceType.iPhone-7)
iPhone 7 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus)
iPhone 8 (com.apple.CoreSimulator.SimDeviceType.iPhone-8)
iPhone 8 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus)
iPhone X (com.apple.CoreSimulator.SimDeviceType.iPhone-X)
iPhone Xs (com.apple.CoreSimulator.SimDeviceType.iPhone-XS)
iPhone Xs Max (com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max)
iPhone Xʀ (com.apple.CoreSimulator.SimDeviceType.iPhone-XR)
iPhone 11 (com.apple.CoreSimulator.SimDeviceType.iPhone-11)
iPhone 11 Pro (com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro)
iPhone 11 Pro Max (com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro-Max)
...
```-- iOS 12.2 --
iPhone 5s (B9F8AD52-F3A4-4E5A-B6EC-406827678E41) (Shutdown)
iPhone 6 Plus (D5C54611-B44F-4F42-A400-FA6B3F10877A) (Shutdown)
iPhone 6 (E29542E6-163D-4ABD-8825-78975A22934D) (Shutdown)
iPhone 6s (B6D65541-1EB4-43A7-B738-28A215AE50D4) (Shutdown)
iPhone 6s Plus (C1C0488F-7810-4552-B404-F344D36B1215) (Shutdown)
iPhone 7 (7A5DDC90-60BD-4B9A-9CEC-62C924EB86DF) (Shutdown)
iPhone 7 Plus (D19DABA8-AA67-454D-904E-760D202A148A) (Shutdown)
iPhone 8 (37F662FE-7368-46E2-AE87-4C1EC561DB07) (Shutdown)
iPhone 8 Plus (E7F29F60-E1E3-4206-875C-CE0CD0FDD2B5) (Shutdown)
iPhone X (13DD7A53-D818-444D-A537-633365C9DFA8) (Booted) ```
Did detox drop support for running against other iPhone simulators?
I've updated applesimutils and removed and re-added the iPhone X device with iOS version 12.2, but still same error.
我在 Detox 14.3.4 中看到了相同的行为。我假设这是您使用的 Detox 版本。
此处为我修复:https://github.com/wix/Detox/issues/1675
这里也复制解决方案:
"Setting the name for the simulator in the Detox config to "iPhone 5s,iOS 11.3" vs "iPhone 5s" 为我修好了。似乎 deviceInfo.newestRuntime.version 在 Detox 的 AppleSimUtils.js 中会 return最新的 OS 版本,不管该版本是否存在模拟器。”
Detox 最近在 package.json 中更新了新设备选择 API。请迁移到那个。
我也遇到过这个问题,用下面的命令解决了。
- 酿造水龙头wix/brew
- brew 安装 applesimutils
此外,我正在使用 XCode 12.4 和 detox 18.7.1。
接受来自 XCode 的使用 iOS 13 和 iPhone 11 升级的许可后出现此错误。我对 运行 进行排毒测试没问题iPhone 11 台设备使用 "iPhone 11" 作为排毒配置中的名称值。
错误:找不到与 "iPhone X" 匹配的模拟器,运行 'xcrun simctl list' 列出您支持的设备。 建议只写设备类型,不要写iOS版本,例如"iPhone 7"```
运行 xcrun simctl list
和 iPhone X 肯定在那里并启动:
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)
iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)
iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)
iPhone 6s (com.apple.CoreSimulator.SimDeviceType.iPhone-6s)
iPhone 6s Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus)
iPhone SE (com.apple.CoreSimulator.SimDeviceType.iPhone-SE)
iPhone 7 (com.apple.CoreSimulator.SimDeviceType.iPhone-7)
iPhone 7 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus)
iPhone 8 (com.apple.CoreSimulator.SimDeviceType.iPhone-8)
iPhone 8 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus)
iPhone X (com.apple.CoreSimulator.SimDeviceType.iPhone-X)
iPhone Xs (com.apple.CoreSimulator.SimDeviceType.iPhone-XS)
iPhone Xs Max (com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max)
iPhone Xʀ (com.apple.CoreSimulator.SimDeviceType.iPhone-XR)
iPhone 11 (com.apple.CoreSimulator.SimDeviceType.iPhone-11)
iPhone 11 Pro (com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro)
iPhone 11 Pro Max (com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro-Max)
...
```-- iOS 12.2 --
iPhone 5s (B9F8AD52-F3A4-4E5A-B6EC-406827678E41) (Shutdown)
iPhone 6 Plus (D5C54611-B44F-4F42-A400-FA6B3F10877A) (Shutdown)
iPhone 6 (E29542E6-163D-4ABD-8825-78975A22934D) (Shutdown)
iPhone 6s (B6D65541-1EB4-43A7-B738-28A215AE50D4) (Shutdown)
iPhone 6s Plus (C1C0488F-7810-4552-B404-F344D36B1215) (Shutdown)
iPhone 7 (7A5DDC90-60BD-4B9A-9CEC-62C924EB86DF) (Shutdown)
iPhone 7 Plus (D19DABA8-AA67-454D-904E-760D202A148A) (Shutdown)
iPhone 8 (37F662FE-7368-46E2-AE87-4C1EC561DB07) (Shutdown)
iPhone 8 Plus (E7F29F60-E1E3-4206-875C-CE0CD0FDD2B5) (Shutdown)
iPhone X (13DD7A53-D818-444D-A537-633365C9DFA8) (Booted) ```
Did detox drop support for running against other iPhone simulators?
I've updated applesimutils and removed and re-added the iPhone X device with iOS version 12.2, but still same error.
我在 Detox 14.3.4 中看到了相同的行为。我假设这是您使用的 Detox 版本。
此处为我修复:https://github.com/wix/Detox/issues/1675
这里也复制解决方案: "Setting the name for the simulator in the Detox config to "iPhone 5s,iOS 11.3" vs "iPhone 5s" 为我修好了。似乎 deviceInfo.newestRuntime.version 在 Detox 的 AppleSimUtils.js 中会 return最新的 OS 版本,不管该版本是否存在模拟器。”
Detox 最近在 package.json 中更新了新设备选择 API。请迁移到那个。
我也遇到过这个问题,用下面的命令解决了。
- 酿造水龙头wix/brew
- brew 安装 applesimutils
此外,我正在使用 XCode 12.4 和 detox 18.7.1。