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

Function maybePrintRemoteIosWaitHint

src/cli/commands/react-devtools.ts:60–79  ·  view source on GitHub ↗
(
  args: string[],
  flags: ReactDevtoolsCommandOptions['flags'],
  exitCode: number,
)

Source from the content-addressed store, hash-verified

58}
59
60function maybePrintRemoteIosWaitHint(
61 args: string[],
62 flags: ReactDevtoolsCommandOptions['flags'],
63 exitCode: number,
64): void {
65 if (
66 exitCode === 0 ||
67 !isWaitConnectedCommand(args) ||
68 !isRemoteIosBridgeBackend(flags?.leaseBackend)
69 ) {
70 return;
71 }
72 process.stderr.write(
73 [
74 'Hint: Remote iOS React DevTools connects during JavaScript startup.',
75 'If the app was already open before `agent-device react-devtools start`, relaunch it with `agent-device open <bundle-id> --platform ios --relaunch`, then retry `agent-device react-devtools wait --connected`.',
76 '',
77 ].join('\n'),
78 );
79}
80
81function readRemoteBridgeField(
82 missing: string[],

Callers 1

runReactDevtoolsCommandFunction · 0.85

Calls 3

isWaitConnectedCommandFunction · 0.85
isRemoteIosBridgeBackendFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected