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

Function availableIosRuntimes

scripts/integration/simulator-selection.mjs:37–46  ·  view source on GitHub ↗
(runJson, timeoutMs)

Source from the content-addressed store, hash-verified

35}
36
37function availableIosRuntimes(runJson, timeoutMs) {
38 const payload = runJson("xcrun", ["simctl", "list", "runtimes", "-j"], {
39 timeoutMs,
40 });
41 return payload.runtimes
42 .filter(
43 (runtime) => runtime.isAvailable && runtime.identifier?.includes("iOS"),
44 )
45 .sort(compareRuntimeVersions);
46}
47
48function availableDeviceTypes(runJson, timeoutMs) {
49 return (

Callers 1

Calls 1

runJsonFunction · 0.70

Tested by

no test coverage detected