Skip to content
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

LiveSync with console.log support for iOS simulators #1262

Closed
vchimev opened this issue Nov 27, 2015 · 12 comments
Closed

LiveSync with console.log support for iOS simulators #1262

vchimev opened this issue Nov 27, 2015 · 12 comments
Assignees
Milestone

Comments

@vchimev
Copy link

vchimev commented Nov 27, 2015

Starting with {N} CLI 1.5.0, consoloe.log() messages is supported with LiveSync on Android device/emulator and iOS device (#1130) - support for iOS simulators to be implemented.

@tjvantoll
Copy link
Contributor

Did this make it into the 1.6 release? It doesn’t seem to be working for me.

@rosen-vladimirov
Copy link
Contributor

Yep, I've tested it and it worked. What's your XCode version, simulator and the command that you are executing?

@tjvantoll
Copy link
Contributor

@rosen-vladimirov: I’m using Xcode 7.2.1 with a iOS 9.2 simulator and using tns livesync ios --emulator --watch.

I see console logs the first time I run the app, but as soon as I make a single change I no longer see console logs or stack traces.

@sitefinitysteve
Copy link

Same as TJ, tns 1.6.1

Looks like if I update the XML, I get my console log dumps, but any JS change just isn't shown

@rosen-vladimirov
Copy link
Contributor

Guys, can you try tns livesync ios --watch when the simulator is already started and see if your console.logs are there?

@tjvantoll
Copy link
Contributor

@rosen-vladimirov: I’ve tried this several times on several different apps and I consistently don’t see the console logs 🙁

@rosen-vladimirov
Copy link
Contributor

@tjvantoll Thank you for testing it. I'll give it a try in the next couple of days and see what's going on there.

@dtopuzov
Copy link
Contributor

Still not working with {N} 1.7.0 RC.

Here is the test case:

  1. Run "tns create TestApp"
  2. Add console.log() in view-model:
unction createViewModel() {
    var viewModel = new Observable();
    viewModel.counter = 42;
    viewModel.message = getMessage(viewModel.counter);

    viewModel.onTap = function() {
        console.log("test log");
        this.counter--;
        this.set("message", getMessage(this.counter));
    }

    return viewModel;
}
  1. Run "ins livesync ios --watch"
    => now when you tap the button you see "test log" in console log
  2. Change
    console.log("test log"); => console.log("new log");
    => app restarts and you have nothing in console log. No "new log", no "test log".

@aaweb
Copy link

aaweb commented Mar 25, 2016

+1

@stefalda
Copy link

I confirm that it still doesn't work (1.7.0), I think it is a MUST for any serious development!
Thanks

@axalon
Copy link

axalon commented Apr 10, 2016

Confirm that it still doesn't work in 1.7.0. Definitely a huge issue that needs to be fixed.

@vchimev
Copy link
Author

vchimev commented Apr 27, 2016

Fixed in 2.0.0.

@vchimev vchimev closed this as completed Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants