Skip to content

Conversation

@BenLatSauce
Copy link

Description

Adding retry logic to openurl command that will shutdown the simulator, re-launch the device, and attempt the openurl command again.

src/index.js Outdated
await idbCompanion.boot(device.udid, timeout * 1000);
} catch (recoveryError) {
debug(`Recovery error: ${recoveryError}`);
throw new Error("Simulator recovery failed. Aborting operation.");

Choose a reason for hiding this comment

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

Same as above, WDYT?

Copy link
Author

Choose a reason for hiding this comment

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

As above, I have updated the throw to include the error message.

@BenLatSauce BenLatSauce marked this pull request as ready for review November 4, 2025 15:26
@BenLatSauce BenLatSauce requested a review from a team as a code owner November 4, 2025 15:26
BenLatSauce and others added 4 commits November 6, 2025 11:22
Co-authored-by: Sebastian Alex <[email protected]>
Co-authored-by: Sebastian Alex <[email protected]>
Util already included
@BenLatSauce BenLatSauce merged commit 7f53544 into main Nov 12, 2025
2 checks passed
@BenLatSauce BenLatSauce deleted the ioslockfix branch November 12, 2025 21:57
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.

3 participants