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

Function cloneSimulator

scripts/studio-host-provider.mjs:508–512  ·  view source on GitHub ↗
(templateUdid, name)

Source from the content-addressed store, hash-verified

506}
507
508async function cloneSimulator(templateUdid, name) {
509 return (
510 await execText("xcrun", ["simctl", "clone", templateUdid, name])
511 ).trim();
512}
513
514async function deleteSimulator(udid) {
515 await execFileAsync("xcrun", ["simctl", "delete", udid], { timeout: 60000 });

Callers 1

allocateSessionFunction · 0.85

Calls 1

execTextFunction · 0.85

Tested by

no test coverage detected