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

Function normalizeExistingDefaults

src/cli/commands/setup.ts:156–173  ·  view source on GitHub ↗
(config?: ProjectConfig)

Source from the content-addressed store, hash-verified

154}
155
156function normalizeExistingDefaults(config?: ProjectConfig): {
157 projectPath?: string;
158 workspacePath?: string;
159 scheme?: string;
160 deviceId?: string;
161 simulatorId?: string;
162 simulatorName?: string;
163} {
164 const sessionDefaults = config?.sessionDefaults ?? {};
165 return {
166 projectPath: sessionDefaults.projectPath,
167 workspacePath: sessionDefaults.workspacePath,
168 scheme: sessionDefaults.scheme,
169 deviceId: sessionDefaults.deviceId,
170 simulatorId: sessionDefaults.simulatorId,
171 simulatorName: sessionDefaults.simulatorName,
172 };
173}
174
175function inferPlatformsFromExisting(config?: ProjectConfig): SetupPlatform[] {
176 if (!config) return [];

Callers 1

collectSetupSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected