mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Revert temporarily to old launching logic
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user