project.json:

{ "name": "mobile", //... "targets": { //... "run-ios": { "executor": "@nrwl/react-native:run-ios", "options": {} } } }
nx run mobile:run-ios

Examples

The mode option allows to specify the xcode configuartion schema, such as Debug or Release.

"run-ios": { "executor": "@nrwl/react-native:run-ios", "options": { "mode": "Release" } }

Options

mode

string
Default: Debug

Explicitly set the scheme configuration to use

simulator

string

Explicitly set simulator to use. Optionally include iOS version between parenthesis at the end to match an exact version: "iPhone 6 (10.0)"

buildFolder

string

Location for iOS build artifacts. Corresponds to Xcode's "-derivedDataPath". Relative to ios directory.

binaryPath

string

Path relative to project root where pre-built .app binary lives.

device

string

Explicitly set device to use by name. The value is not required if you have a single device connected.

extraParams

string

Custom params that will be passed to xcodebuild command.

interactive

boolean

Explicitly select which scheme and configuration to use before running a build

install

boolean
Default: false

Runs pod install for native modules before building iOS app.

port

number
Default: 8081

The port where the packager server is listening on.

packager

boolean
Default: true

Launch packager while building

resetCache

boolean
Default: false

Resets metro cache.

schema

string

Explicitly set Xcode scheme to use

sync

boolean
Default: true

Syncs npm dependencies to package.json (for React Native autolink).

udid

string

Explicitly set device to use by udid

verbose

boolean

Do not use xcbeautify or xcpretty even if installed

xcconfig

string

Explicitly set xcconfig to use

xcodeConfiguration

Deprecated
string
Default: Debug

Explicitly set the Xcode configuration to use.

Use mode instead. Deprecated from @react-native-community/cli. Will be removed in Nx 17.