You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix run without platform on ios.
* Make `tns run` without platform working
Introduce new method in livesync-command-helper to get platforms on which to execute action.
Rename a method in the helper as its purpose is to execute livesync, not to get params for livesync operation.
Pass correct args to detectCurrentlyAttachedDevices in debug command.
Make `tns run` to fail in case there's no running emulators and no devices attached as we are unable to determine for which platform to stat emulator.
Run on all connected devices | `$ tns run [--release] [--justlaunch]`
7
+
Run on a selected connected device or running emulator. Will start emulator with specified `Device Identifier`, if not already running. | `$ tns run --device <Device ID> [--release] [--justlaunch]`
7
8
8
-
Runs your project on all connected devices or in native emulators for the selected platform.<% if(isMacOS) { %> You must specify the target platform on which you want to run your project.<% } %><% if(isConsole && (isLinux || isWindows)) { %>You must run `$ tns run android`<% } %> The command will prepare, build and deploy the app when necessary. By default listens for changes in your code, synchronizes those changes and refreshes all selected devices.
9
+
Runs your project on all connected devices or in native emulators for the selected platform.<% if(isConsole && (isLinux || isWindows)) { %>The command will work with all currently running Android devices and emulators.<% } %> The command will prepare, build and deploy the app when necessary. By default listens for changes in your code, synchronizes those changes and refreshes all selected devices.
`<Platform>` is the target mobile platform on which you want to run your project. You can set the following target platforms.
12
-
*`android` - Runs your project on a connected Android device, in the native emulator.
13
-
*`ios` - Runs your project on a connected iOS device or in the iOS Simulator.<% } %>
11
+
### Options
12
+
*`--justlaunch` - If set, does not print the application output in the console.
13
+
*`--release` - If set, produces a release build. Otherwise, produces a debug build.
14
+
*`--device` - Specifies a connected device/emulator to start and run the app.
15
+
16
+
### Attributes
17
+
*`<Device ID>` is the index or `Device Identifier` of the target device as listed by `$ tns device <Platform> --available-devices`
14
18
15
19
<% if(isHtml) { %>
16
20
### Command Limitations
17
21
18
-
* You can run `$ tns run ios` only on OS X systems.
22
+
* The command will work with all connected devices and running emulators on macOS. On Windows and Linux the command will work with Android devices only.
23
+
* In case a platform is not specified and there's no running devices and emulators, the command will fail.
19
24
20
25
### Related Commands
21
26
@@ -35,4 +40,4 @@ Command | Description
35
40
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
36
41
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
37
42
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
0 commit comments