MCPcopy Create free account
hub / github.com/callstack/agent-device / resolveRunnerPlatformNameForAppleOs

Function resolveRunnerPlatformNameForAppleOs

src/kernel/device.ts:179–196  ·  view source on GitHub ↗
(
  appleOs: AppleOS,
)

Source from the content-addressed store, hash-verified

177}
178
179function resolveRunnerPlatformNameForAppleOs(
180 appleOs: AppleOS,
181): 'iOS' | 'tvOS' | 'macOS' | 'visionOS' {
182 switch (appleOs) {
183 case 'tvos':
184 return 'tvOS';
185 case 'macos':
186 return 'macOS';
187 case 'visionos':
188 return 'visionOS';
189 // iOS and iPadOS share the single iOS runner profile/SDK. watchOS remains
190 // reserved in the type but is never produced by discovery; defaulting it to
191 // iOS keeps any future record on a valid runner profile without introducing
192 // watchOS support.
193 default:
194 return 'iOS';
195 }
196}
197
198export function resolveAppleSimulatorSetPathForSelector(params: {
199 simulatorSetPath?: string;

Callers 1

resolveApplePlatformNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…