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

fix(ios): ignore "nothing to terminate" simctl error #3551

Merged
merged 1 commit into from
Aug 14, 2022

Conversation

mikehardy
Copy link
Contributor

Description

I was having problems running my detox tests in CI (but not locally?) that looked exactly like #3518 and it seemed easy enough to patch, so I tried it and it seems to work for me.

Unsure on formatting here but either CI will tell me or you all will :-) - I was hacking it locally via patch-package so don't have devtools for the repo set up + available at the moment sorry

@asafkorem you marked this as assigned to yourself, so perhaps you want to give it a look?

Fixes #3518 (I think - it does for me anyway)


For features/enhancements:

  • I have added/updated the relevant references in the documentation files.

For API changes:

  • I have made the necessary changes in the types index file.

Copy link
Contributor

@asafkorem asafkorem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🥇

Comment on lines +249 to +251
if (err.code === 3 &&
(err.stderr.includes(`the app is not currently running`) ||
err.stderr.includes(`The operation couldn’t be completed. found nothing to terminate`))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They probably changed this error message in the latest CLI tools versions. That's a new error that they introduced recently https://developer.apple.com/forums/thread/699615

@asafkorem asafkorem merged commit ef93629 into wix:master Aug 14, 2022
@asafkorem
Copy link
Contributor

Huge thanks @mikehardy!

@mikehardy
Copy link
Contributor Author

Thanks for the link to the upstream issue on messaging, that explains why this only started showing up for me recently, but was not dependent on (for instance) trying Xcode 14 beta (which I'm also giving a look at from time to time)

Either way, happy to help, you all have my continued appreciation for maintaining Detox! Cheers

@asafkorem
Copy link
Contributor

Version 19.9.2 was released with this patch 🙂
Thanks again Mike!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error The operation couldn’t be completed. found nothing to terminate
2 participants