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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ class AppleSimUtils {
// ```
// This workaround is done to ignore the error above, as we do not care if the app was running before, we just
// want to make sure it isn't now.
if (err.code === 3 && err.stderr.includes(`the app is not currently running`)) {
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`))) {
Comment on lines +249 to +251
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

return;
}

Expand Down