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

Function bootSimulator

scripts/studio-host-provider.mjs:518–527  ·  view source on GitHub ↗
(config, udid)

Source from the content-addressed store, hash-verified

516}
517
518async function bootSimulator(config, udid) {
519 await localJson(
520 config,
521 `/api/simulators/${encodeURIComponent(udid)}/boot`,
522 {},
523 );
524 await execFileAsync("xcrun", ["simctl", "bootstatus", udid, "-b"], {
525 timeout: 600000,
526 });
527}
528
529async function simulatorByUdid(config, udid) {
530 const list = await localGet(config, "/api/simulators");

Callers 1

allocateSessionFunction · 0.70

Calls 1

localJsonFunction · 0.70

Tested by

no test coverage detected