From 57d4e865453145c953855381dab36730c1751542 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Tue, 31 Oct 2023 05:16:21 -0700 Subject: [PATCH] Additional troubleshoot guidance for idb Summary: Reference: https://fb.workplace.com/groups/flippersupport/permalink/1717333982080586/ The steps added below seem to have fixed the issue. Still need to investigate why these steps are needed. Reviewed By: aigoncharov Differential Revision: D50797561 fbshipit-source-id: a31c71dbedc506344438082846b41ff16b6f459a --- .../src/devices/ios/iOSContainerUtility.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop/flipper-server-core/src/devices/ios/iOSContainerUtility.tsx b/desktop/flipper-server-core/src/devices/ios/iOSContainerUtility.tsx index ebec6222d..2ace8bf00 100644 --- a/desktop/flipper-server-core/src/devices/ios/iOSContainerUtility.tsx +++ b/desktop/flipper-server-core/src/devices/ios/iOSContainerUtility.tsx @@ -16,6 +16,7 @@ import {promisify} from 'util'; import child_process from 'child_process'; import fs from 'fs-extra'; import {recorder} from '../../recorder'; +import {isFBBuild} from '../../fb-stubs/constants'; const exec = promisify(child_process.exec); export type IdbConfig = { @@ -173,8 +174,12 @@ async function queryTargetsWithIdb( const cmd = `${idbPath} list-targets --json`; const description = `Query available devices with idb. idb is aware of the companions that you have manually connected, as well as other iOS targets that do not yet have companions.`; - const troubleshoot = `Either idb is not installed or needs to be reset. + let troubleshoot = `Either idb is not installed or needs to be reset. Run 'idb kill' from terminal.`; + if (isFBBuild) { + troubleshoot += ` If the steps above do not fix the issue, try re-installing idb by running these commands on the terminal 'sudo microdnf remove fb-idb fb-idb-companion' +and 'sudo microdnf install fb-idb fb-idb-companion'.`; + } try { const {stdout} = await unsafeExec(cmd);