Skip to content

Debug on device does not sync file changes #2500

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

Closed
NickIliev opened this issue Feb 7, 2017 · 18 comments
Closed

Debug on device does not sync file changes #2500

NickIliev opened this issue Feb 7, 2017 · 18 comments
Assignees
Labels
Milestone

Comments

@NickIliev
Copy link
Contributor

From @bnussey on February 3, 2017 20:16

When using debug mode on device (works as expected on emulator), it does not sync new files with the following error message:

Unable to sync files. Error is: Unable to kill the application.

This results in having to re-run the debug command
Here's full logs:

Executing before-prepare hook from /Users/blake/Documents/ns/app/hooks/before-prepare/nativescript-dev-typescript.js
Preparing project...
Project successfully prepared (iOS)
Executing after-prepare hook from /Users/blake/Documents/ns/app/hooks/after-prepare/nativescript-unit-test-runner.js
Transferring project files...
Successfully transferred asset-manager.models.js.
Successfully synced application com.stageme.app on device 1a33b375679bbb440fb6dbfcad31ea28bb1ed8af.

Frontend socket closed!
Unable to sync files. Error is: Unable to kill the application.

Copied from original issue: NativeScript/NativeScript#3575

@NickIliev
Copy link
Contributor Author

From @mounirka on February 4, 2017 23:58

Hi @bnussey are you using the command tns run android ?

@NickIliev
Copy link
Contributor Author

From @tsonevn on February 6, 2017 12:40

Hi @bnussey,

I reviewed your case, however, was unable to reproduce such a problem. Regard to that, could you provide some more info about your problem and exact steps, which you are following?
I tested your case tns run <platform_name>, which will automatically start livesync and it seems to work as expected.

Regards,
@tsonevn

@NickIliev
Copy link
Contributor Author

From @bnussey on February 6, 2017 19:12

Hey all,

Sorry, left that key bit of information out. The command I use is tns run debug ios

@Plamen5kov
Copy link
Contributor

Plamen5kov commented Feb 7, 2017

@bnussey the possible commands are:

  • tns run ios
  • tns debug ios

There is no tns run debug ios

@bnussey
Copy link

bnussey commented Feb 7, 2017

Hey @Plamen5kov sorry im talking about tns debug ios

@Plamen5kov
Copy link
Contributor

@bnussey I couldn't reproduce your project. What I did:

tns create cliapp && cd cliapp
tns debug ios
// change some files in main-view-model.js

@bnussey
Copy link

bnussey commented Feb 8, 2017

Did you do this specifically on the device @Plamen5kov ? it works fine on emulator, but not device.

@Plamen5kov
Copy link
Contributor

Plamen5kov commented Feb 9, 2017

@bnussey I managed to reproduce it once. Problem is, it might take some time to manage to find what the reason behind the crash is, since it isn't reproduced every time. I'm investigating further.

@bnussey
Copy link

bnussey commented Feb 9, 2017

Great thanks @Plamen5kov

@rosen-vladimirov
Copy link
Contributor

Hey @bnussey , can you try CLI's @next version and see if the error is still reproducible?
Just install the next version via:

npm i -g nativescript@next

and try again.

I'm looking forward to hearing from you.

@pkoleva
Copy link
Contributor

pkoleva commented Mar 23, 2017

I can reproduce this on my machine with CLI version 3.0.0-2017.3.23.1

@pkoleva pkoleva removed this from the 3.0.0-RC milestone Apr 3, 2017
@bnussey
Copy link

bnussey commented Apr 19, 2017

Still getting this issue and able to reproduce it freely when on device...

@anuragd7
Copy link

anuragd7 commented Apr 21, 2017

Am getting this error with tns version 2.5.0 everytime I try tns run ios.

Interestingly though tns livesync ios works perfectly for the same project...!

Note - After a few successes - Now tns livesync ios is also not working!!

@bnussey
Copy link

bnussey commented Apr 27, 2017

Any updates on this? Still seems to be a problem.

@rosen-vladimirov
Copy link
Contributor

@bnussey can you try CLI's @next version and see if the issue is still reproducible?
In order to install it, you should execute:

$ npm i -g nativescript@next

Thanks in advance for your help.

@bnussey
Copy link

bnussey commented Apr 27, 2017

Hey @rosen-vladimirov can report it fixes it.

@etabakov etabakov added this to the 3.0.0 milestone Apr 27, 2017
@bnussey
Copy link

bnussey commented Apr 27, 2017

Hey @etabakov I am now getting this on run for the emulator:

Unable to sync files. Error is: Multiple errors were thrown:
Error Command failed: xcrun simctl launch 2006D8E4-F732-46D3-91E2-BB214E973318 com.stageme.app
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=3):
The request to open "com.stageme.app" failed.
The process did launch, but has since exited or crashed.
 while executing xcrun simctl launch 2006D8E4-F732-46D3-91E2-BB214E973318 

@bnussey
Copy link

bnussey commented Apr 27, 2017

Looks like it might be back...

Unable to sync files. Error is: Could not stop application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants