Revert temporarily to old launching logic

This commit is contained in:
Mike Grabowski
2018-04-06 18:16:55 +02:00
committed by GitHub
parent 7fdf9d2efb
commit a716e324a3
+4 -7
View File
@@ -115,15 +115,12 @@ function runOnSimulator(xcodeProject, args, scheme) {
if (!selectedSimulator.booted) {
const simulatorFullName = formattedDeviceName(selectedSimulator);
console.log(`Booting ${simulatorFullName}...`);
console.log(`Launching ${simulatorFullName}...`);
try {
child_process.execFileSync('xcrun', ['simctl', 'boot', selectedSimulator.udid]);
child_process.spawnSync('xcrun', ['instruments', '-w', selectedSimulator.udid]);
} catch (e) {
throw new Error(
`Could not boot ${args.simulator} simulator. Is there already a simulator running?
Running multiple simulators is only supported from Xcode 9 and up.
Try closing the simulator or run the command again without specifying a simulator.`
);
// instruments always fail with 255 because it expects more arguments,
// but we want it to only launch the simulator
}
}