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

Function executeXcodemakeCommand

src/utils/xcodemake.ts:162–177  ·  view source on GitHub ↗
(
  projectDir: string,
  buildArgs: string[],
  logPrefix: string,
)

Source from the content-addressed store, hash-verified

160}
161
162export async function executeXcodemakeCommand(
163 projectDir: string,
164 buildArgs: string[],
165 logPrefix: string,
166): Promise<CommandResponse> {
167 const xcodemakeCommand = [getXcodemakeCommand(), ...buildArgs];
168 const prefix = projectDir + '/';
169 const command = xcodemakeCommand.map((arg) => {
170 if (arg.startsWith(prefix)) {
171 return arg.substring(prefix.length);
172 }
173 return arg;
174 });
175
176 return getDefaultCommandExecutor()(command, logPrefix, false, { cwd: projectDir });
177}
178
179export async function executeMakeCommand(
180 projectDir: string,

Callers 2

executeXcodeBuildCommandFunction · 0.90
xcodemake.test.tsFile · 0.90

Calls 2

getXcodemakeCommandFunction · 0.85

Tested by

no test coverage detected