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
This commit is contained in:
Pritesh Nandgaonkar
2019-06-05 11:35:50 -07:00
committed by Facebook Github Bot
parent 1973432f78
commit 873475405a

View File

@@ -132,7 +132,8 @@ function getActiveSimulators(): Promise<Array<IOSDeviceParams>> {
name: simulator.name,
};
});
});
})
.catch(_ => []);
}
function getActiveDevices(): Promise<Array<IOSDeviceParams>> {