MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / buildOpenSimulatorAppCommand

Function buildOpenSimulatorAppCommand

src/utils/focus-policy.ts:46–55  ·  view source on GitHub ↗
(opts?: { simulatorId?: string })

Source from the content-addressed store, hash-verified

44 * should be skipped (headless mode — `simctl boot` is sufficient).
45 */
46export function buildOpenSimulatorAppCommand(opts?: { simulatorId?: string }): string[] | null {
47 if (isHeadlessLaunchMode()) {
48 return null;
49 }
50 const command = ['open', '-a', 'Simulator'];
51 if (opts?.simulatorId) {
52 command.push('--args', '-CurrentDeviceUDID', opts.simulatorId);
53 }
54 return command;
55}

Callers 6

sendKeyboardShortcutFunction · 0.90
createOpenSimExecutorFunction · 0.90
bootAndOpenSimulatorFunction · 0.90

Calls 2

isHeadlessLaunchModeFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected