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 鈥攄evice <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
Added the platform again and restarted the device
tns device run <application id> --device <device id>
results in the same error.
Here's the
device-log.txt
@agrawal-mohit We are not able to reproduce the issue locally. You could help us by doing the following:
tns livesync ios with --log trace option and send us the log fileI have the same issue. Unfortunately don't have another Mac or iPhone, so just attached the trace. Note that the app runs on iPhone if I start it manually (tns run ios managed to install it on the iPhone, but no debugging).
For me this issue started to occur after updating phone to iOS 10.1.1.
I tried to launch app from xcode directly and got error dialog that iPhone support files are missing(maybe this error message could be reported by cli).
Update xcode to 8.1 fixed my issue.
I don't have another Mac or an iPhone. But since @cuteredstorm is facing it too, I suppose the problem is at the application level.
Like @tkaarrela said, this issue could occur when deploying to a phone running with higher version of iOS than the supported by Xcode. Upgrading to the latest version of Xcode should fix the issue. We will think on improving the CLI message in such scenarios.
@tzraikov has completely ignored the fact that I posted the trace of a case where I had the latest iPhone and latest Xcode.
I missed that, yes. One option then is that there is something wrong with your Xcode configuration. Please, could you try the following: go to the plafroms/ios/ folder in your project and open the .xcodeproj file located there. Try to start it from Xcode.
I have tried and tried but cannot reproduce the issue anymore. I was certainly on latest Xcode and latest iOS but maybe these two were not in sync by Apple. Anyway a better message would benefit as well as instructions to test from Xcode first (in that perspective this issue is very useful).
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.
Just ran into the same issue. Here's what solved it for me:
tns platform add ios && tns prepare ios && tns build ios && tns run ios
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.
Just ran into this issue. What fixed it for me was:
tns build iostns run ios --device xxxxxNS CLI: 2.5.3
macOS: 10.12.4
OSX on iPhone 5: 10.3
Xcode: 8.2.1
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.
Most helpful comment
Just ran into the same issue. Here's what solved it for me: