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

Function canFallbackAfterAppleDeviceNotFound

src/core/dispatch-resolve.ts:95–104  ·  view source on GitHub ↗
(
  error: unknown,
  selector: AppleDeviceSelector,
)

Source from the content-addressed store, hash-verified

93}
94
95function canFallbackAfterAppleDeviceNotFound(
96 error: unknown,
97 selector: AppleDeviceSelector,
98): boolean {
99 return (
100 !hasExplicitAppleDeviceSelector(selector) &&
101 error instanceof AppError &&
102 error.code === 'DEVICE_NOT_FOUND'
103 );
104}
105
106function shouldUseAppleSimulatorFallback(
107 selector: AppleDeviceSelector,

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…