From 873475405ae8fa43b1224d8a859acdfb72f2921e Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Wed, 5 Jun 2019 11:35:50 -0700 Subject: [PATCH] Catch the exception thrown in xcrun Summary: Catch the exception thrown in xcrun, which will occur for linux machines and in the cases when Xcode command line toolchain is not installed. Reviewed By: passy Differential Revision: D15621368 fbshipit-source-id: f3044cee6f7a4b5ba927a33003f9690c1fe31586 --- src/dispatcher/iOSDevice.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispatcher/iOSDevice.js b/src/dispatcher/iOSDevice.js index 0ea0cceec..de78bc359 100644 --- a/src/dispatcher/iOSDevice.js +++ b/src/dispatcher/iOSDevice.js @@ -132,7 +132,8 @@ function getActiveSimulators(): Promise> { name: simulator.name, }; }); - }); + }) + .catch(_ => []); } function getActiveDevices(): Promise> {