@@ -2,7 +2,7 @@ import path from 'path';
22import fs from 'fs' ;
33import isInteractive from 'is-interactive' ;
44import { logger } from '@callstack/rnef-tools' ;
5- import listDevices from '../../utils/listDevices.js' ;
5+ import { listDevicesAndSimulators } from '../../utils/listDevices.js' ;
66import { promptForDeviceSelection } from '../../utils/prompts.js' ;
77import { getConfiguration } from '../build/getConfiguration.js' ;
88import { getPlatformInfo } from '../../utils/getPlatformInfo.js' ;
@@ -26,9 +26,7 @@ export const createRun = async (
2626 args : RunFlags ,
2727 projectRoot : string
2828) => {
29- const { sdkNames, readableName : platformReadableName } =
30- getPlatformInfo ( platformName ) ;
31-
29+ const { readableName : platformReadableName } = getPlatformInfo ( platformName ) ;
3230 const { xcodeProject, sourceDir } = projectConfig ;
3331
3432 if ( ! xcodeProject ) {
@@ -57,14 +55,14 @@ export const createRun = async (
5755
5856 const loader = spinner ( ) ;
5957 loader . start ( 'Looking for available devices and simulators' ) ;
60- const devices = await listDevices ( sdkNames ) ;
58+ const devices = await listDevicesAndSimulators ( ) ;
6159 if ( devices . length === 0 ) {
6260 return logger . error (
6361 `${ platformReadableName } devices or simulators not detected. Install simulators via Xcode or connect a physical ${ platformReadableName } device`
6462 ) ;
6563 }
6664 loader . stop ( 'Found available devices and simulators.' ) ;
67- const device = await selectDevice ( devices , args , projectRoot , platformName ) ;
65+ const device = await selectDevice ( devices , args , platformName ) ;
6866
6967 if ( device ) {
7068 if ( device . type === 'simulator' ) {
@@ -124,7 +122,6 @@ export const createRun = async (
124122async function selectDevice (
125123 devices : Device [ ] ,
126124 args : RunFlags ,
127- projectRoot : string ,
128125 platform : ApplePlatform
129126) {
130127 const { simulator, udid, interactive } = args ;
0 commit comments