MCPcopy Index your code
hub / github.com/callstack/agent-device / resolveAppleDeviceCandidate

Function resolveAppleDeviceCandidate

src/core/dispatch-resolve.ts:82–93  ·  view source on GitHub ↗
(
  devices: DeviceInfo[],
  selector: AppleDeviceSelector,
  context: { simulatorSetPath?: string },
)

Source from the content-addressed store, hash-verified

80}
81
82async function resolveAppleDeviceCandidate(
83 devices: DeviceInfo[],
84 selector: AppleDeviceSelector,
85 context: { simulatorSetPath?: string },
86): Promise<DeviceInfo | undefined> {
87 try {
88 return await resolveDevice(devices, selector, context);
89 } catch (error) {
90 if (canFallbackAfterAppleDeviceNotFound(error, selector)) return undefined;
91 throw error;
92 }
93}
94
95function canFallbackAfterAppleDeviceNotFound(
96 error: unknown,

Callers 1

resolveAppleDeviceFunction · 0.85

Calls 2

resolveDeviceFunction · 0.90

Tested by

no test coverage detected