Skip to content

Fix ios debugger for projects created with framework version lower than 1.2.0… #668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2015

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jul 21, 2015

If the project is created with framework version lower than 1.2, tns debug ios command fails with the following error: "Command failed: /bin/sh -c open -a '/.npm/tns-ios/1.1.2/package/WebInspectorUI/NativeScript Inspector.app' --args '/.npm/tns-ios/1.1.2/package/WebInspectorUI/Safari/Main.html' 'newAppRelease'
FSPathMakeRef(~/.npm/tns-ios/1.1.2/package/WebInspectorUI/NativeScript Inspector.app) failed with error -43."

@ns-bot
Copy link

ns-bot commented Jul 21, 2015

let frameworkVersion = this.$projectDataService.getValue(platformData.frameworkPackageName).wait().version;
if(semver.lt(frameworkVersion, "1.2.0")) {
let safariPath = path.join(inspectorPath, "Safari/Main.html");
cmd = "open -a Safari " + safariPath;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible safariPath to have spaces in it? Should we escape it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is possible only when the user changes the default npm cache path 😸 I'll escape it.

@Fatme Fatme force-pushed the fatme/fix-ios-debugger branch from bf8f7cc to dc63f5f Compare July 21, 2015 16:54
@ns-bot
Copy link

ns-bot commented Jul 21, 2015

@Fatme Fatme force-pushed the fatme/fix-ios-debugger branch from dc63f5f to ebba4ca Compare July 21, 2015 16:58
@teobugslayer
Copy link
Contributor

👍

@dtopuzov
Copy link
Contributor

run ci

@ns-bot
Copy link

ns-bot commented Jul 21, 2015

@Fatme Fatme force-pushed the fatme/fix-ios-debugger branch from ebba4ca to c9afb9f Compare July 22, 2015 05:53
@ns-bot
Copy link

ns-bot commented Jul 22, 2015

Fatme pushed a commit that referenced this pull request Jul 22, 2015
Fix ios debugger for projects created with framework version lower than 1.2.0…
@Fatme Fatme merged commit 1ce8d9e into release Jul 22, 2015
@Fatme Fatme deleted the fatme/fix-ios-debugger branch July 22, 2015 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants