Skip to content

Commit 44a271e

Browse files
FatmeFatme
authored andcommitted
Merge pull request #689 from NativeScript/fatme/unzip-inspector.zip
Fix ios debugger
2 parents be2bc50 + ebab7bc commit 44a271e

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
NativeScript CLI Changelog
22
================
33

4-
1.2.0 (2015, July 22)
4+
1.2.1 (2015, July 24)
5+
==
6+
7+
### Fixed
8+
9+
* [Fixed #690](https://github.com/NativeScript/nativescript-cli/issues/690): The `$ tns debug ios --debug-brk` command is not working.
10+
11+
1.2.0 (2015, July 24)
512
==
613

714
### New

lib/services/ios-debug-service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ class IOSDebugService implements IDebugService {
218218
cmd = `open -a Safari "${inspectorSourceLocation}"`;
219219
} else {
220220
let inspectorApplicationPath = path.join(inspectorPath, "NativeScript Inspector.app");
221+
if(!this.$fs.exists(inspectorApplicationPath).wait()) {
222+
this.$fs.unzip(path.join(inspectorPath, "NativeScript Inspector.zip"), inspectorPath).wait();
223+
}
221224
cmd = `open -a '${inspectorApplicationPath}' --args '${inspectorSourceLocation}' '${this.$projectData.projectName}'`;
222225
}
223226

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nativescript",
33
"preferGlobal": true,
4-
"version": "1.2.0",
4+
"version": "1.2.1",
55
"author": "Telerik <[email protected]>",
66
"description": "Command-line interface for building NativeScript projects",
77
"bin": {

0 commit comments

Comments
 (0)