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

Function extractBuildSettingValues

src/utils/platform-detection.ts:41–51  ·  view source on GitHub ↗
(output: string, settingName: string)

Source from the content-addressed store, hash-verified

39}
40
41function extractBuildSettingValues(output: string, settingName: string): string[] {
42 const regex = new RegExp(`^\\s*${settingName}\\s*=\\s*(.+)$`, 'gm');
43 const values: string[] = [];
44
45 for (const match of output.matchAll(regex)) {
46 const value = match[1]?.trim();
47 if (value) values.push(value);
48 }
49
50 return values;
51}
52
53export async function detectPlatformFromScheme(
54 projectPath: string | undefined,

Callers 1

detectPlatformFromSchemeFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected