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

Function resolveEffectiveDerivedDataPath

src/utils/derived-data-path.ts:33–51  ·  view source on GitHub ↗
(input: DerivedDataPathInput = {})

Source from the content-addressed store, hash-verified

31}
32
33export function resolveEffectiveDerivedDataPath(input: DerivedDataPathInput = {}): string {
34 const cwd = input.cwd ?? process.cwd();
35 const explicitDerivedDataPath = getNonEmptyPath(input.derivedDataPath);
36 if (explicitDerivedDataPath) {
37 return resolvePathFromCwd(explicitDerivedDataPath, cwd);
38 }
39
40 const workspacePath = getNonEmptyPath(input.workspacePath);
41 if (workspacePath) {
42 return computeScopedDerivedDataPath(workspacePath, cwd);
43 }
44
45 const projectPath = getNonEmptyPath(input.projectPath);
46 if (projectPath) {
47 return computeScopedDerivedDataPath(projectPath, cwd);
48 }
49
50 return resolveWorkspaceDerivedDataRoot(cwd);
51}

Callers 15

formatToolPreflightFunction · 0.90
executeXcodeBuildCommandFunction · 0.90
buildHeaderParamsFunction · 0.90
createBuildMacOSRequestFunction · 0.90
createBuildDeviceRequestFunction · 0.90
prepareBuildSimExecutionFunction · 0.90

Calls 4

resolvePathFromCwdFunction · 0.90
getNonEmptyPathFunction · 0.85

Tested by

no test coverage detected