( args: string[], flags: ReactDevtoolsCommandOptions['flags'], exitCode: number, )
| 58 | } |
| 59 | |
| 60 | function 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 | |
| 81 | function readRemoteBridgeField( |
| 82 | missing: string[], |
no test coverage detected