nativescript-cli: Unable to start service com.apple.debugserver. Result code is: 3892314146
Hi,
I’m using tns 2.3.0 and trying to build and livesync a project on iPhone 9.3.2
The debug commands builds and mounts successfully but end in this message :
$tns debug ios --device <device id>
Timeout waiting for response from NativeScript runtime.
and livesync command responds -
$tns livesync ios —device <device id> --watch
Your application will be deployed only on the device specified by the provided index or identifier.
Executing before-prepare hook from /Users/mohit/work/Mobile/native/finly-ng/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.0.3
Project successfully prepared (ios)
Executing before-livesync hook from /Users/mohit/work/Mobile/native/finly-ng/hooks/before-livesync/nativescript-angular-sync.js
Transferring project files...
Successfully transferred all files.
Applying changes...
Unable to start service com.apple.debugserver. Result code is: 3892314146
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (3 by maintainers)
Just ran into the same issue. Here’s what solved it for me:
Perhaps relevant: when building the application in Xcode rather than NS, Xcode cannot assemble the project on the iPhone if the iPhone screen was locked at the time of plugin (even if you unlock the screen after it is has been plugged in). If I start Xcode and try to run the project, it tells me this. If I then unplug my iPhone from the Mac, unlock the screen, and plug it back in, I am able to compile and run the application with the TNS CLI. Very strange.
Just ran into this issue. What fixed it for me was:
tns build ios
tns run ios --device xxxxx
NS CLI: 2.5.3 macOS: 10.12.4 OSX on iPhone 5: 10.3 Xcode: 8.2.1
I have run into this twice now in 2.5.0. When this happens, the only solution I’ve found is to reboot my machine. Windows XP style.
This happened to me as well while trying to run livesync. Doing a build with
tns build ios
fixed it. After that I was able to run livesync again.