简体   繁体   English

错误:找不到与“iPhone 6s”匹配的模拟器

[英]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

Try upgrading Detox to the latest version ( 14.7.1 , as of 11/15/2019), there was a fix to the simulator selection logic in aa250258 released in 14.5.0 a month ago.尝试将 Detox 升级到最新版本( 14.7.1 ,截至 2019 年 11 月 15 日),一个月前在14.5.0发布的14.5.0中修复了模拟器选择逻辑。

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

相关问题 如何在Macbook的iPhone 6s Simulator上找到SQLite数据库? - How to find SQLite db on iPhone 6s Simulator in Macbook? 错误 MT0117:无法在仅支持 64 位应用程序的模拟器上启动 32 位应用程序 (iPhone 6s) - error MT0117: Can't launch a 32-bit app on a simulator that only supports 64-bit apps (iPhone 6s) iPhone 6S / iOS 9.1:无法找到代码为0xdeadfa11的崩溃日志 - iPhone 6S/iOS 9.1 : Can't find crash log with code 0xdeadfa11 Flutter: 无法将.ipa 文件安装到iphone 6S plus - Flutter: can't install .ipa file into iphone 6S plus iOS无法在iphone5或4s上读取QR码,但是6、6s可以 - IOS can't read QR code on iphone5 or 4s, but 6, 6s are OK 如何在iPhone 6 / 6s或iPhone 6 + / 6s +的iOS模拟器中打开显示缩放 - How to turn on Display Zoom in iOS Simulator for iPhone 6/6s or iPhone 6+/6s+ UIButton或UIBarButtonItem在iPhone 6s和6s plus上反应不佳 - UIButton or UIBarButtonItem didn't response well on iPhone 6s and 6s plus iPhone 6s Plus 不显示启动画面 - Splash Screen doesn't display in iPhone 6s Plus 找不到iPhone模拟器的SQLite数据库:使用魔术记录 - Can't Find iPhone Simulator's SQLite Database : Using Magical Record 在 iPhone 5s iOS 8.1.2 和 Simulator 8.1 上找不到支持类型 4 和 5 的键盘 - Can't find keyplane that supports type 4 and 5 on iPhone 5s iOS 8.1.2 and Simulator 8.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM