-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Conversation
✅ |
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
bf8f7cc
to
dc63f5f
Compare
❌ |
dc63f5f
to
ebba4ca
Compare
👍 |
run ci |
✅ |
ebba4ca
to
c9afb9f
Compare
✅ |
Fix ios debugger for projects created with framework version lower than 1.2.0…
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."