Skip to content

Commit

Permalink
fix(ios): prioritize simulators over devices
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Apr 23, 2024
1 parent be880b8 commit 992d01d
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 992d01d

Please sign in to comment.