[英]Error: Can't find a simulator to match with “iPhone 6s”
Detox was working fine as expected a couple of weeks ago - i've not updated anything to my knowledge and now I keep getting the following error when trying to test (it builds fine):几周前排毒工作正常 - 我没有更新任何东西,现在我在尝试测试时不断收到以下错误(它构建得很好):
Error: Can't find a simulator to match with "iPhone 6s", run 'xcrun simctl list' to list your supported devices.
It is advised to only state a device type, and not to state iOS version, e.g. "iPhone 7"
at AppleSimUtils.findDevicesUDID (/Users/user/Documents/work/app/e2e/node_modules/detox/src/devices/ios/AppleSimUtils.js:47:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
If I run applesimutils --list --byName "iPhone 6s" it shows 2 devices:如果我运行 applesimutils --list --byName "iPhone 6s" 它会显示 2 个设备:
[
{
"deviceType" : {
"name" : "iPhone 6s",
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s"
},
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6s",
"udid" : "A87C2EF9-95D2-4562-99BE-E1A39A63ABB1",
"os" : {
"buildversion" : "17B102",
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
"isAvailable" : true,
"name" : "iOS 13.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-13-2",
"version" : "13.2.2"
}
},
{
"deviceType" : {
"name" : "iPhone 6s",
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s.simdevicetype",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s"
},
"state" : "Shutdown",
"isAvailable" : true,
"name" : "iPhone 6s",
"udid" : "F5A2C1D3-5416-431C-A9B5-6054A238283D",
"os" : {
"buildversion" : "16E226",
"bundlePath" : "\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 12.2.simruntime",
"isAvailable" : true,
"name" : "iOS 12.2",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-2",
"version" : "12.2"
}
}
]
I've tried adding and removing the simulator through xcode and xcrun, but nothing seems to work.我尝试通过 xcode 和 xcrun 添加和删除模拟器,但似乎没有任何效果。
Versions:版本:
Mac 10.14.6 applesimutils version 0.7.6 detox 14.3.4 xcode 11.2.1 Mac 10.14.6 applesimutils 版本 0.7.6 detox 14.3.4 xcode 11.2.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.