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

Function isRunningUnderXcode

src/utils/xcode-process.ts:12–19  ·  view source on GitHub ↗
(entries: ProcessTreeEntry[])

Source from the content-addressed store, hash-verified

10};
11
12export function isRunningUnderXcode(entries: ProcessTreeEntry[]): boolean {
13 return entries.some(
14 (entry) =>
15 entry.name === 'Xcode' ||
16 entry.command.includes('Contents/MacOS/Xcode') ||
17 entry.command.includes('com.apple.dt.Xcode'),
18 );
19}
20
21export async function detectXcodeRuntime(
22 executor: CommandExecutor,

Callers 2

detectXcodeRuntimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected