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

Function buildOpenAppCommand

src/utils/focus-policy.ts:30–40  ·  view source on GitHub ↗
(appPath: string, opts?: { args?: string[] })

Source from the content-addressed store, hash-verified

28 * In headless launch mode, `-g` is added so the app does not become foreground.
29 */
30export function buildOpenAppCommand(appPath: string, opts?: { args?: string[] }): string[] {
31 const command: string[] = ['open'];
32 if (isHeadlessLaunchMode()) {
33 command.push('-g');
34 }
35 command.push(appPath);
36 if (opts?.args?.length) {
37 command.push('--args', ...opts.args);
38 }
39 return command;
40}
41
42/**
43 * Build the argv to surface Simulator.app, or `null` to indicate the launch

Callers 2

launchMacAppFunction · 0.90

Calls 2

isHeadlessLaunchModeFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected