MCPcopy Index your code
hub / github.com/callstack/agent-device / requireSimulatorDevice

Function requireSimulatorDevice

src/platforms/apple/core/simulator.ts:69–73  ·  view source on GitHub ↗
(device: DeviceInfo, command: string)

Source from the content-addressed store, hash-verified

67}
68
69export function requireSimulatorDevice(device: DeviceInfo, command: string): void {
70 if (device.kind !== 'simulator') {
71 throw new AppError('UNSUPPORTED_OPERATION', `${command} is only supported on iOS simulators`);
72 }
73}
74
75export async function openIosSimulatorApp(options: OpenIosSimulatorAppOptions = {}): Promise<void> {
76 const appNames = options.deviceHub ? IOS_DEVICE_HUB_HOST_APPS : IOS_SIMULATOR_HOST_APPS;

Callers 4

readIosClipboardTextFunction · 0.90
writeIosClipboardTextFunction · 0.90
pushIosNotificationFunction · 0.90
setIosSettingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected