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

device.terminateApp results in ChildProcessError #1296

Closed
1 task done
cs01 opened this issue Apr 16, 2019 · 2 comments
Closed
1 task done

device.terminateApp results in ChildProcessError #1296

cs01 opened this issue Apr 16, 2019 · 2 comments

Comments

@cs01
Copy link
Contributor

cs01 commented Apr 16, 2019

Describe the bug

Calling this code (with Detox v12.3.0)

import detox, {device} from 'detox';
...
await device.terminateApp({delete: true});

results in this

    ChildProcessError: Command failed: /usr/bin/xcrun simctl terminate 77D2E143-6DCD-432E-B0A7-1453376D30EE [object Object]
    Terminate an application by identifier on a device.
    Usage: simctl terminate <device> <app bundle identifier>
     `/usr/bin/xcrun simctl terminate 77D2E143-6DCD-432E-B0A7-1453376D30EE [object Object]` (exited with error code 117)

To Reproduce

  • I have tested this issue on the latest Detox release and it still reproduces

Provide the steps necessary to reproduce the issue. If you are seeing a regression, try to provide the last known version where the issue did not reproduce.

  1. in beforeAll Jest method, try to terminate app

Screenshots
image

@noomorph
Copy link
Collaborator

noomorph commented Apr 17, 2019

@cs01, where did you get your impression from, that device.terminateApp accepts an object as a first argument? Please find the misleading fragment of the documentation, I want to fix it.

@cs01
Copy link
Contributor Author

cs01 commented Apr 17, 2019

Thanks for the response! That was a copy and paste error. It works fine when I take it out.

@cs01 cs01 closed this as completed Apr 17, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants