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
Labels
Milestone

Comments

@vchimev
Copy link

@vchimev 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.

@Fatme Fatme added this to the 1.6.0 (Under consideration) milestone Nov 27, 2015
@rosen-vladimirov rosen-vladimirov self-assigned this Feb 11, 2016
@tjvantoll

This comment has been minimized.

Copy link
Contributor

@tjvantoll tjvantoll commented Feb 17, 2016

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

@rosen-vladimirov

This comment has been minimized.

Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Feb 17, 2016

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

@tjvantoll

This comment has been minimized.

Copy link
Contributor

@tjvantoll tjvantoll commented Feb 18, 2016

@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

This comment has been minimized.

Copy link

@sitefinitysteve sitefinitysteve commented Feb 18, 2016

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

This comment has been minimized.

Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Feb 23, 2016

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

@tjvantoll

This comment has been minimized.

Copy link
Contributor

@tjvantoll tjvantoll commented Feb 23, 2016

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

@rosen-vladimirov

This comment has been minimized.

Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Feb 23, 2016

@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

This comment has been minimized.

Copy link
Member

@dtopuzov dtopuzov commented Mar 12, 2016

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".
@dtopuzov dtopuzov modified the milestones: 2.0, 1.6.0 Mar 12, 2016
@dtopuzov dtopuzov added 0 - Open and removed 1 - In Progress labels Mar 12, 2016
@aaweb

This comment has been minimized.

Copy link

@aaweb aaweb commented Mar 25, 2016

+1

@stefalda

This comment has been minimized.

Copy link

@stefalda stefalda commented Apr 10, 2016

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

@axalon

This comment has been minimized.

Copy link

@axalon 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

This comment has been minimized.

Copy link
Author

@vchimev vchimev commented Apr 27, 2016

Fixed in 2.0.0.

@vchimev vchimev closed this Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
9 participants
You can’t perform that action at this time.