Skip to content

Commit ab81558

Browse files
Merge pull request #3553 from NativeScript/fatme/docs-simulator-name-and-sdk
Add docs for device name and sdk options
2 parents bbcf9bc + 3291e30 commit ab81558

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/man_pages/project/testing/run-ios.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ position: 11
88
Usage | Synopsis
99
---|---
1010
Run on all connected devices | `$ tns run ios [--release] [--justlaunch] [--bundle [<value>] [--env.*]]`
11-
Run on a selected connected device. Will start simulator with specified `Device Identifier`, if not already running. | `$ tns run ios [--device <Device ID>] [--release] [--justlaunch] [--bundle [<value>] [--env.*]]`
11+
Run on a selected connected device. Will start simulator with specified `Device Identifier` or `Device Name`, if not already running. | `$ tns run ios [--device <Device ID>] [--release] [--justlaunch] [--bundle [<value>] [--env.*]]`
1212
Start an emulator and run the app inside it | `$ tns run ios --emulator [--release] [--bundle [<value>] [--env.*]]`
13+
Start an emulator with specified device name and sdk | `$ tns run ios [--device <Device Name>] [--sdk <sdk>]`
14+
Start an emulator with specified device identifier and sdk | `$ tns run ios [--device <Device Identifier>] [--sdk <sdk>]`
1315

1416
Runs your project on a connected iOS device or in the iOS Simulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
1517

@@ -20,6 +22,7 @@ Runs your project on a connected iOS device or in the iOS Simulator, if configur
2022
### Options
2123
* `--device` - Specifies a connected device/simulator to start and run the app.
2224
* `--emulator` - If set, runs the app in all available and configured ios simulators. It will start a simulator if none are already running.
25+
* `--sdk` - Specifies the target simulator's sdk.
2326
* `--justlaunch` - If set, does not print the application output in the console.
2427
* `--clean` - If set, forces rebuilding the native application.
2528
* `--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
@@ -30,6 +33,7 @@ Runs your project on a connected iOS device or in the iOS Simulator, if configur
3033

3134
### Attributes
3235
* `<Device ID>` is the index or `Device Identifier` of the target device as listed by `$ tns device ios --available-devices`
36+
* `<Device Name>` is the name of the target simulator as listed by `$ tns device ios --available-devices`
3337
<% } %>
3438
<% if(isHtml) { %>
3539
### Prerequisites

0 commit comments

Comments
 (0)