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:
committed by
Facebook Github Bot
parent
1973432f78
commit
873475405a
@@ -132,7 +132,8 @@ function getActiveSimulators(): Promise<Array<IOSDeviceParams>> {
|
|||||||
name: simulator.name,
|
name: simulator.name,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
})
|
||||||
|
.catch(_ => []);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getActiveDevices(): Promise<Array<IOSDeviceParams>> {
|
function getActiveDevices(): Promise<Array<IOSDeviceParams>> {
|
||||||
|
|||||||
Reference in New Issue
Block a user