Skip to content

Commit

Permalink
fix(ios): prioritize simulators over devices (#2364)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Jun 5, 2024
1 parent 7f2a028 commit ad237ed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/cli-platform-apple/src/commands/runCommand/createRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,25 +240,25 @@ const createRun =

logger.info(`Found booted ${booted.map(({name}) => name).join(', ')}`);

for (const device of bootedDevices) {
await runOnDevice(
device,
for (const simulator of bootedSimulators) {
await runOnSimulator(
xcodeProject,
platformName,
mode,
scheme,
xcodeProject,
args,
simulator || fallbackSimulator,
);
}

for (const simulator of bootedSimulators) {
await runOnSimulator(
xcodeProject,
for (const device of bootedDevices) {
await runOnDevice(
device,
platformName,
mode,
scheme,
xcodeProject,
args,
simulator || fallbackSimulator,
);
}

Expand Down

0 comments on commit ad237ed

Please sign in to comment.