@nrwl/react-native:run-ios
Run iOS target options.
Options can be configured in project.json
when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.
project.json
:
{
"name": "mobile",
//...
"targets": {
//...
"run-ios": {
"executor": "@nrwl/react-native:run-ios",
"options": {}
}
}
}
nx run mobile:run-ios
Examples
To see all the avaiable simulators, run command:
xcrun simctl list
The simulator
option allows you to launch your iOS app in a specific simulator:
"run-ios": {
"executor": "@nrwl/react-native:run-ios",
"options": {
"simulator": "iPhone 14 Pro"
}
}