Skip to content

tns livesync ios --emulator --watch doesn't sync changes #776

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
tjvantoll opened this issue Aug 12, 2015 · 13 comments
Closed

tns livesync ios --emulator --watch doesn't sync changes #776

tjvantoll opened this issue Aug 12, 2015 · 13 comments
Labels
Milestone

Comments

@tjvantoll
Copy link
Contributor

Hey all,

After 1.2.2 tns livesync ios --emulator works great, but if I add the --watch flag the iOS simulator no longer reflects my changes. The watcher works, and the simulator reloads, but my changes are not present.

tns livesync android --emulator --watch works as expected.

Thanks.

@Fatme
Copy link
Contributor

Fatme commented Aug 12, 2015

Hi @tjvantoll ,

Can you give us more information about your iOS simulator - device type, sdk version? I've just tested tns livesync ios --emulator --watch command with iPhone-4s/ iOS 7.1 and iPhone 6 Plus/ iOS 8.4 and it works as expected.

@tjvantoll
Copy link
Contributor Author

I'm using the default on my machine, which is an iPhone-4s running iOS 8.4. It's odd because tns livesync ios --emulator works, but with the --watch flag those changes don't make it to the app. I'm going to try playing with some other device combinations.

@tjvantoll
Copy link
Contributor Author

I made a short video to show this in action: https://www.dropbox.com/s/odfkf9rvrj26dqp/livesync-issue.mov?dl=0

@Fatme
Copy link
Contributor

Fatme commented Aug 12, 2015

I've tested iPhone-4s/ iOS 8.4 and it works as expected. Can you execute tns livesync ios --emulator --watch --log trace and send us the output?

@tjvantoll
Copy link
Contributor Author

Looking at the logs myself it seems I'm actually running the iOS 8.1 simulator, which I'm not sure how that happened. Let me get an iOS 8.4 simulator running and get back with you.

Thanks for the quick help.

@tjvantoll
Copy link
Contributor Author

Hmmmm... I made sure to run an iOS 8.4 simulator and I had the same issue. Here's a log of me making a single change: https://gist.github.com/tjvantoll/6a29fb6d77eb22050b97.

@tjvantoll
Copy link
Contributor Author

Just tried on a new project and this command works as expected, which is odd. I had updated the previous project to use the 1.2.1 iOS runtime. I'm still playing with this to try to see what's up.

@Fatme
Copy link
Contributor

Fatme commented Aug 12, 2015

We've reproduced the problem using Groceries sample. The problem is with nested folders. We've moved login.js file from app/views/login/login.js to app/login.js which is wrong location. I'm preparing a fix that will be released ASAP.

@xuezier
Copy link

xuezier commented Feb 23, 2016

tns --version:1.6.1
tns livesync ios --emulator --watch, js file has changed,but not sync

@vchimev
Copy link

vchimev commented Feb 24, 2016

Hi @xuezier,

I am not aware and not able to reproduce such a problem with NativeScript 1.6.1 . Could you please open a new issue if you are still experiencing it?

Thank you.

@xuezier
Copy link

xuezier commented Feb 24, 2016

yes,I tried many time but still experiencing this problem.
now, I open a new issue at #1532

@ecabrera1
Copy link

I have run tns livesync ios --emulator --watch and it launches the emulator and the groceries app launches but then immediately closes. Any suggestions?

@asterizk
Copy link

@ecabrera1 Maybe you're running into this? NathanWalker/angular-seed-advanced#230

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

6 participants