diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b5b6c1921..8cc8397e0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,28 @@ NativeScript CLI Changelog ================ +1.2.2 (2015, August 11) +== + +### New +* [Implemented #470](https://github.com/NativeScript/nativescript-cli/issues/470): Add `--timeout` option to `tns debug`. +* [Implemented #682](https://github.com/NativeScript/nativescript-cli/issues/682): Set `--debug-brk` as the default option of `tns debug`. +* [Implemented #706](https://github.com/NativeScript/nativescript-cli/issues/706): LiveSync to iOS Simulator. + +### Fixed + +* [Fixed #470](https://github.com/NativeScript/nativescript-cli/issues/470): Command failed due to space in file path. +* [Fixed #632](https://github.com/NativeScript/nativescript-cli/issues/632): Android debugger does not work on some OS X systems. +* [Fixed #652](https://github.com/NativeScript/nativescript-cli/issues/652): `tns debug ios` does not load inspector from the added iOS runtime. +* [Fixed #663](https://github.com/NativeScript/nativescript-cli/issues/663): Verify that Java is at least 1.7. +* [Fixed #671](https://github.com/NativeScript/nativescript-cli/issues/671): `tns debug ios` doesn't work for projects created with framework versions earlier than 1.2.0. +* [Fixed #679](https://github.com/NativeScript/nativescript-cli/issues/679): `tns library add ios` adds the framework with its full path in the Xcode project. +* [Fixed #695](https://github.com/NativeScript/nativescript-cli/issues/695): Exceptions tracking is not correctly set in the user settings. +* [Fixed #699](https://github.com/NativeScript/nativescript-cli/issues/699): Unable to update Android platform when npm cache is in an inconsistent state. +* [Fixed #722](https://github.com/NativeScript/nativescript-cli/issues/722): `tns debug` builds and installs the app twice. +* [Fixed #742](https://github.com/NativeScript/nativescript-cli/issues/742): `tns livesync android` doesn't work on some Android devices. +* [Fixed #747](https://github.com/NativeScript/nativescript-cli/issues/747): New files are not respected by `tns livesync`. + 1.2.1 (2015, July 27) == diff --git a/docs/man_pages/project/testing/build-android.md b/docs/man_pages/project/testing/build-android.md index 4433005924..24c9ec8642 100644 --- a/docs/man_pages/project/testing/build-android.md +++ b/docs/man_pages/project/testing/build-android.md @@ -29,7 +29,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/build-ios.md b/docs/man_pages/project/testing/build-ios.md index ed178b3f06..ab293e007e 100644 --- a/docs/man_pages/project/testing/build-ios.md +++ b/docs/man_pages/project/testing/build-ios.md @@ -34,7 +34,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/build.md b/docs/man_pages/project/testing/build.md index b2f6d12ae9..6c380cdc96 100644 --- a/docs/man_pages/project/testing/build.md +++ b/docs/man_pages/project/testing/build.md @@ -31,7 +31,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/debug-android.md b/docs/man_pages/project/testing/debug-android.md index 0ffdda5579..297ec8921c 100644 --- a/docs/man_pages/project/testing/debug-android.md +++ b/docs/man_pages/project/testing/debug-android.md @@ -3,12 +3,12 @@ debug android Usage | Synopsis ---|--- -Deploy on device, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk [--device ] [--debug-port ]` -Deploy in the native emulator, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --emulator []` -Deploy in Genymotion, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --geny ` -Attach the debug tools to a running app on device | `$ tns debug android --start [--device ] [--debug-port ]` -Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator []` -Attach the debug tools to a running app in Genymotion | `$ tns debug android --start --geny [--print-app-output]` +Deploy on device, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk [--device ] [--debug-port ] [--timeout ]` +Deploy in the native emulator, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --emulator [] [--timeout ]` +Deploy in Genymotion, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --geny [--timeout ]` +Attach the debug tools to a running app on device | `$ tns debug android --start [--device ] [--debug-port ] [--timeout ]` +Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [] [--timeout ]` +Attach the debug tools to a running app in Genymotion | `$ tns debug android --start --geny [--print-app-output] [--timeout ]` Retrieve the device port on which you are debugging | `$ tns debug android [--device ] --get-port` Detach the debug tools | `$ tns debug android --stop` @@ -23,7 +23,7 @@ Debugs your project on a connected device, in a native emulator or in Genymotion * `--stop` - Detaches the debug tools. * `--get-port` - Retrieves the port on which you are debugging your application. * `--debug-port` - Sets a new port on which to attach the debug tools. -* `--timeout` - Sets the number of seconds that NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 90 seconds. +* `--timeout` - Sets the number of seconds that the NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 90 seconds. ### Attributes * `` is the index or name of the target device as listed by `$ tns device` @@ -50,7 +50,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/debug-ios.md b/docs/man_pages/project/testing/debug-ios.md index 5749f11888..cef820d174 100644 --- a/docs/man_pages/project/testing/debug-ios.md +++ b/docs/man_pages/project/testing/debug-ios.md @@ -49,7 +49,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/debug.md b/docs/man_pages/project/testing/debug.md index 4a9739884b..5d152cc2d6 100644 --- a/docs/man_pages/project/testing/debug.md +++ b/docs/man_pages/project/testing/debug.md @@ -31,7 +31,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/deploy.md b/docs/man_pages/project/testing/deploy.md index 8c16c14641..1b2979e7bd 100644 --- a/docs/man_pages/project/testing/deploy.md +++ b/docs/man_pages/project/testing/deploy.md @@ -45,7 +45,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/emulate-android.md b/docs/man_pages/project/testing/emulate-android.md index b73e09e235..7ee9fef86b 100644 --- a/docs/man_pages/project/testing/emulate-android.md +++ b/docs/man_pages/project/testing/emulate-android.md @@ -57,7 +57,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/emulate-ios.md b/docs/man_pages/project/testing/emulate-ios.md index 5109707b38..0e7844792e 100644 --- a/docs/man_pages/project/testing/emulate-ios.md +++ b/docs/man_pages/project/testing/emulate-ios.md @@ -42,7 +42,7 @@ Command | Description [emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/emulate.md b/docs/man_pages/project/testing/emulate.md index b8f66aa2a0..1d7dc62a34 100644 --- a/docs/man_pages/project/testing/emulate.md +++ b/docs/man_pages/project/testing/emulate.md @@ -27,7 +27,7 @@ Command | Description [emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator. [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/livesync-android.md b/docs/man_pages/project/testing/livesync-android.md index 43256edca3..29feb97835 100644 --- a/docs/man_pages/project/testing/livesync-android.md +++ b/docs/man_pages/project/testing/livesync-android.md @@ -34,7 +34,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. <% } %> \ No newline at end of file diff --git a/docs/man_pages/project/testing/livesync-ios.md b/docs/man_pages/project/testing/livesync-ios.md index 2bef024660..6dde0cdebf 100644 --- a/docs/man_pages/project/testing/livesync-ios.md +++ b/docs/man_pages/project/testing/livesync-ios.md @@ -3,19 +3,25 @@ livesync ios Usage | Synopsis ------|------- -General | `$ tns livesync ios [--device ] [--watch] [--emulator]` +Synchronize changes to all connected devices | `$ tns livesync ios [--watch]` +Synchronize changes to a selected device | `$ tns livesync ios --device [--watch]` +Synchronize changes to the iOS Simulator | `$ tns livesync ios --emulator [--watch]` -Synchronizes the latest changes in your project to iOS devices or iOS simulator. +Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. ### Options * `--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device. -* `--device` - Specifies the serial number or the index of the connected device to which you want to synchronize changes. To list all connected devices, grouped by platform, run `$ tns device` -* `--emulator` - If set, changes are synchronized to iOS simulator. +* `--device` - Specifies the serial number or the index of the connected device to which you want to synchronize changes. To list all connected devices, grouped by platform, run `$ tns device`. You cannot set `--device` and `--emulator` simultaneously. +* `--emulator` - Synchronizes changes to the iOS Simulator. You cannot set `--device` and `--emulator` simultaneously. ### Attributes * `` is the device index or identifier as listed by `$ tns device` <% if(isHtml) { %> +### Command Limitations + +* You cannot set `--device` and `--emulator` simultaneously. + ### Related Commands Command | Description diff --git a/docs/man_pages/project/testing/livesync.md b/docs/man_pages/project/testing/livesync.md index de0cbdc83f..0aa8b26dec 100644 --- a/docs/man_pages/project/testing/livesync.md +++ b/docs/man_pages/project/testing/livesync.md @@ -31,7 +31,7 @@ Command | Description [emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator. [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/run-android.md b/docs/man_pages/project/testing/run-android.md index ddf6a49ea3..dbdf1b300c 100644 --- a/docs/man_pages/project/testing/run-android.md +++ b/docs/man_pages/project/testing/run-android.md @@ -56,7 +56,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. [run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform. diff --git a/docs/man_pages/project/testing/run-ios.md b/docs/man_pages/project/testing/run-ios.md index 58db58214a..c23c17b6d8 100644 --- a/docs/man_pages/project/testing/run-ios.md +++ b/docs/man_pages/project/testing/run-ios.md @@ -48,7 +48,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform. diff --git a/docs/man_pages/project/testing/run.md b/docs/man_pages/project/testing/run.md index d34e3b8a3a..83d5ba9aa8 100644 --- a/docs/man_pages/project/testing/run.md +++ b/docs/man_pages/project/testing/run.md @@ -32,7 +32,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/lib/common b/lib/common index 36f276ec4f..8b7da378b8 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 36f276ec4fa8527f2f4bf0fd5a50525b89aeda55 +Subproject commit 8b7da378b86d6e15da3615876bc590283a4403ef