Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify device name? #948

Closed
compojoom opened this issue Sep 25, 2018 · 1 comment
Closed

Specify device name? #948

compojoom opened this issue Sep 25, 2018 · 1 comment

Comments

@compojoom
Copy link

compojoom commented Sep 25, 2018

I'm running into this bug facebook/idb#490
and I'm trying to see if my tests are going to run on iOS 11.4 for the time being.
In Xcode I've downloaded ios 11 and I've created a new simulator with it.

I deleted the simulator with ios12. So currently when I run this:
$ applesimutils --list --byName "iPhone 8"
i get


[
  {
    "deviceType" : {
      "name" : "iPhone 8",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8"
    },
    "state" : "Shutdown",
    "availability" : "(available)",
    "name" : "iPhone 8",
    "udid" : "A0D6B14E-B07B-4156-80CC-CAEAE548F00E",
    "os" : {
      "version" : "11.4",
      "availability" : "(available)",
      "name" : "iOS 11.4",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-4",
      "buildversion" : "15F79"
    }
  }
]

but when I run my test I get:

detox[93098] INFO:  [DetoxServer.js] server listening on localhost:60549...
detox[93098] ERROR: [index.js/DETOX_INIT_ERROR]
 Error: Can't find a simulator to match with "iPhone 8", 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 (/node_modules/detox/src/devices/ios/AppleSimUtils.js:46:13)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

what am I missing here?

@compojoom
Copy link
Author

okay, a stupid comma....

For other wondering, specify name like this:
"name": "iPhone 7, iOS 11.4"

@lock lock bot locked as resolved and limited conversation to collaborators Sep 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant