(sdkroot: string)
| 17 | } |
| 18 | |
| 19 | function 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 | |
| 30 | function supportedPlatformsToSimulatorPlatform(platforms: string[]): SimulatorPlatform | null { |
| 31 | const normalized = new Set(platforms.map((platform) => platform.toLowerCase())); |
no outgoing calls
no test coverage detected