-
Notifications
You must be signed in to change notification settings - Fork 34
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
Remove previous app button #659
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if I like this approach, it may terminate some system processes if I understand correctly. Instead of doing that, maybe there is a way to force opening home screen right before launching. This way the handoff button should be gone as well?
This Portion of the regex |
await exec( | ||
"xcrun", | ||
["simctl", "--set", deviceSetLocation, "terminate", this.deviceUDID, bundleID], | ||
{ allowNonZeroExit: true } | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would likely be better to use Promise.all to await on all the commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
await Promise.all( | ||
matches.map((bundleID) => { | ||
return terminateApp(bundleID); | ||
}) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await Promise.all( | |
matches.map((bundleID) => { | |
return terminateApp(bundleID); | |
}) | |
); | |
await Promise.all(matches.map(terminateApp)); |
This PR removes the "previous app button" from top left corner of the ios simulator. Before this change If the user switched workspaces without shouting down the ios simulator, the button pointing to the previous app would appear in top left corner of the application. Clicking the button would break the IDE functionality as there is no way of navigating through the simulator and the only way to recover would be to restart app process (which would still leave the button in the corner).
The solution it to terminate any open applications before launching a new one.
How Has This Been Tested: