Skip to content

Commit ad237ed

Browse files
fix(ios): prioritize simulators over devices (#2364)
1 parent 7f2a028 commit ad237ed

File tree

1 file changed

+8
-8
lines changed
  • packages/cli-platform-apple/src/commands/runCommand

1 file changed

+8
-8
lines changed

packages/cli-platform-apple/src/commands/runCommand/createRun.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,25 +240,25 @@ const createRun =
240240

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

243-
for (const device of bootedDevices) {
244-
await runOnDevice(
245-
device,
243+
for (const simulator of bootedSimulators) {
244+
await runOnSimulator(
245+
xcodeProject,
246246
platformName,
247247
mode,
248248
scheme,
249-
xcodeProject,
250249
args,
250+
simulator || fallbackSimulator,
251251
);
252252
}
253253

254-
for (const simulator of bootedSimulators) {
255-
await runOnSimulator(
256-
xcodeProject,
254+
for (const device of bootedDevices) {
255+
await runOnDevice(
256+
device,
257257
platformName,
258258
mode,
259259
scheme,
260+
xcodeProject,
260261
args,
261-
simulator || fallbackSimulator,
262262
);
263263
}
264264

0 commit comments

Comments
 (0)