MCPcopy Create free account
hub / github.com/callstack/agent-device / openIosDevice

Function openIosDevice

src/platforms/apple/core/apps.ts:287–296  ·  view source on GitHub ↗
(device: DeviceInfo)

Source from the content-addressed store, hash-verified

285}
286
287export async function openIosDevice(device: DeviceInfo): Promise<void> {
288 if (isMacOs(device)) {
289 return;
290 }
291 if (device.kind !== 'simulator') return;
292 const state = await getSimulatorState(device);
293 if (state === 'Booted') return;
294
295 await ensureBootedSimulator(device);
296}
297
298export async function closeIosApp(device: DeviceInfo, app: string): Promise<void> {
299 if (isMacOs(device)) {

Callers 1

createAppleInteractorFunction · 0.90

Calls 3

isMacOsFunction · 0.90
getSimulatorStateFunction · 0.90
ensureBootedSimulatorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…