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

Function sdkrootToSimulatorPlatform

src/utils/platform-detection.ts:19–28  ·  view source on GitHub ↗
(sdkroot: string)

Source from the content-addressed store, hash-verified

17}
18
19function sdkrootToSimulatorPlatform(sdkroot: string): SimulatorPlatform | null {
20 const sdkLower = sdkroot.toLowerCase();
21
22 if (sdkLower.startsWith('watchsimulator')) return XcodePlatform.watchOSSimulator;
23 if (sdkLower.startsWith('appletvsimulator')) return XcodePlatform.tvOSSimulator;
24 if (sdkLower.startsWith('xrsimulator')) return XcodePlatform.visionOSSimulator;
25 if (sdkLower.startsWith('iphonesimulator')) return XcodePlatform.iOSSimulator;
26
27 return null;
28}
29
30function supportedPlatformsToSimulatorPlatform(platforms: string[]): SimulatorPlatform | null {
31 const normalized = new Set(platforms.map((platform) => platform.toLowerCase()));

Callers 1

detectPlatformFromSchemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected