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

Function parseXcodebuildErrorMessage

src/utils/xcodebuild-error-utils.ts:6–9  ·  view source on GitHub ↗
(rawOutput: string)

Source from the content-addressed store, hash-verified

4const XCODEBUILD_ERROR_REGEX = /^xcodebuild:\s*error:\s*(.+)$/im;
5
6function parseXcodebuildErrorMessage(rawOutput: string): string | null {
7 const match = XCODEBUILD_ERROR_REGEX.exec(rawOutput);
8 return match ? match[1].trim() : null;
9}
10
11export function extractQueryDiagnostics(rawOutput: string): BasicDiagnostics {
12 const parsed = parseXcodebuildErrorMessage(rawOutput);

Callers 1

extractQueryDiagnosticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected