diff --git a/packages/cli-platform-apple/src/commands/runCommand/runOptions.ts b/packages/cli-platform-apple/src/commands/runCommand/runOptions.ts index f641aaaf4..6d5e9e278 100644 --- a/packages/cli-platform-apple/src/commands/runCommand/runOptions.ts +++ b/packages/cli-platform-apple/src/commands/runCommand/runOptions.ts @@ -1,4 +1,5 @@ import {getDefaultUserTerminal} from '@react-native-community/cli-tools'; +import {buildOptions} from '../buildCommand/buildOptions'; export const runOptions = [ { @@ -43,4 +44,5 @@ export const runOptions = [ name: '--udid ', description: 'Explicitly set the device to use by UDID', }, + ...buildOptions, ]; diff --git a/packages/cli-platform-ios/src/commands/runIOS/index.ts b/packages/cli-platform-ios/src/commands/runIOS/index.ts index 7b399e247..82f32056c 100644 --- a/packages/cli-platform-ios/src/commands/runIOS/index.ts +++ b/packages/cli-platform-ios/src/commands/runIOS/index.ts @@ -7,7 +7,6 @@ */ import { - buildOptions, createRun, runOptions, } from '@react-native-community/cli-platform-apple'; @@ -30,5 +29,5 @@ export default { cmd: 'npx react-native run-ios --simulator "Apple TV" --scheme "helloworld-tvOS"', }, ], - options: [...buildOptions, ...runOptions], + options: runOptions, };