MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / eraseSimulatorReliably

Function eraseSimulatorReliably

scripts/integration/js-api.mjs:570–583  ·  view source on GitHub ↗
(udid)

Source from the content-addressed store, hash-verified

568}
569
570function eraseSimulatorReliably(udid) {
571 return retrySync(
572 () => {
573 shutdownSimulatorIfNeeded(udid);
574 runText("xcrun", ["simctl", "erase", udid], {
575 timeoutMs: 180_000,
576 });
577 return { ok: true, udid, action: "erase" };
578 },
579 "erase simulator",
580 3,
581 3_000,
582 );
583}
584
585function closeSession() {
586 session?.close();

Callers 1

mainFunction · 0.85

Calls 3

retrySyncFunction · 0.85
runTextFunction · 0.70

Tested by

no test coverage detected