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

Console.log has no output on terminal #3118

Closed
NickIliev opened this Issue Sep 13, 2017 · 14 comments

Comments

Projects
None yet
@NickIliev
Member

NickIliev commented Sep 13, 2017

From @bigradish on September 13, 2017 2:41

When I follow the steps in the "Debugging apps" section of your tutorial https://docs.nativescript.org/tutorial/chapter-1 , both console.log and console.dir have no output on the terminal.

More info:

  1. development machine: Windows 10 64bit
  2. target platform: android
  3. cli version: 3.2.0
  4. Cross-platform modules: 3.1.1
  5. Runtime: 3.2.0
  6. Plugin: no plugin used, just the HelloWorld project in the tutorial.

Thank you.

Copied from original issue: NativeScript/NativeScript#4835

@christian-kolb

This comment has been minimized.

Show comment
Hide comment
@christian-kolb

christian-kolb Sep 20, 2017

I have the same issue on the same CLI and runtime version but on Mac and with iOS as target platform.

christian-kolb commented Sep 20, 2017

I have the same issue on the same CLI and runtime version but on Mac and with iOS as target platform.

@christian-kolb

This comment has been minimized.

Show comment
Hide comment
@christian-kolb

christian-kolb Sep 20, 2017

If I run the app with tns debug ios --watch I get console output in the Nativescript Inspector. But only there and this seems to be the only way to get to the logging. The problem is for all logging information including errors.

christian-kolb commented Sep 20, 2017

If I run the app with tns debug ios --watch I get console output in the Nativescript Inspector. But only there and this seems to be the only way to get to the logging. The problem is for all logging information including errors.

@christian-kolb

This comment has been minimized.

Show comment
Hide comment
@christian-kolb

christian-kolb Sep 20, 2017

@bigradish and @NickIliev Did one of you try to use an older version of the CLI yet? I first thought it might be related to the XCode update and the new iOS 11, but as you're using Android on Windows those two things don't seem to be related.

christian-kolb commented Sep 20, 2017

@bigradish and @NickIliev Did one of you try to use an older version of the CLI yet? I first thought it might be related to the XCode update and the new iOS 11, but as you're using Android on Windows those two things don't seem to be related.

@glen-stephens

This comment has been minimized.

Show comment
Hide comment
@glen-stephens

glen-stephens Sep 27, 2017

@christian-kolb I just upgraded to XCode 9 and iOS 11 and my console.log quit outputting to the terminal. Was working fine previous to updating XCode. Have not been able to get it working again. tns debug ios --watch does output to the nativescript console, but not the terminal. Any help or suggestions would be awesome!

glen-stephens commented Sep 27, 2017

@christian-kolb I just upgraded to XCode 9 and iOS 11 and my console.log quit outputting to the terminal. Was working fine previous to updating XCode. Have not been able to get it working again. tns debug ios --watch does output to the nativescript console, but not the terminal. Any help or suggestions would be awesome!

@thegermin8er

This comment has been minimized.

Show comment
Hide comment
@thegermin8er

thegermin8er Sep 28, 2017

Same as glen-stephens

thegermin8er commented Sep 28, 2017

Same as glen-stephens

@etabakov

This comment has been minimized.

Show comment
Hide comment
@etabakov

etabakov Sep 28, 2017

Member

Hey guys,
Regarding the problem with the missing logs with XCode9 / iOS 11, this is caused by changes in the latest iOS and how event logging is handled. We are working on resolution and it should be available in the next minor release.

Regarding the problem with Windows and Android - this is not related to the above issue. We will take a look and let you know.

Member

etabakov commented Sep 28, 2017

Hey guys,
Regarding the problem with the missing logs with XCode9 / iOS 11, this is caused by changes in the latest iOS and how event logging is handled. We are working on resolution and it should be available in the next minor release.

Regarding the problem with Windows and Android - this is not related to the above issue. We will take a look and let you know.

@NathanaelA

This comment has been minimized.

Show comment
Hide comment
@NathanaelA

NathanaelA Sep 29, 2017

Contributor

For those who need logging back; here is the way I'm doing it now...
fluentreports.com/blog/?p=545

Contributor

NathanaelA commented Sep 29, 2017

For those who need logging back; here is the way I'm doing it now...
fluentreports.com/blog/?p=545

@glen-stephens

This comment has been minimized.

Show comment
Hide comment
@glen-stephens

glen-stephens Sep 29, 2017

@etabakov If it helps, console.log does work to the terminal when running on an actual device, just not from the simulator.

glen-stephens commented Sep 29, 2017

@etabakov If it helps, console.log does work to the terminal when running on an actual device, just not from the simulator.

@KristianDD

This comment has been minimized.

Show comment
Hide comment
@KristianDD

KristianDD Sep 29, 2017

Contributor

Here is a separate issue for iOS11 Simulator and Xcode9: #3141. Lets continue the discussion there.

Contributor

KristianDD commented Sep 29, 2017

Here is a separate issue for iOS11 Simulator and Xcode9: #3141. Lets continue the discussion there.

@bigradish

This comment has been minimized.

Show comment
Hide comment
@bigradish

bigradish Nov 19, 2017

Why this issue has not received any process till now?

bigradish commented Nov 19, 2017

Why this issue has not received any process till now?

@Natalia-Hristova

This comment has been minimized.

Show comment
Hide comment
@Natalia-Hristova

Natalia-Hristova Apr 4, 2018

Collaborator

Can confirm that console.log() and console.dir() work on mac Xcode 9.2 simulator and device and on Windows - emulator and device.
using current rc versions of nativescript and runtimes. All related fixes will be available in next official release.

You can test it out too in rc --> npm i -g nativescript@rc tns platform add ios@rc and please share if you still encounter the same problems.

Collaborator

Natalia-Hristova commented Apr 4, 2018

Can confirm that console.log() and console.dir() work on mac Xcode 9.2 simulator and device and on Windows - emulator and device.
using current rc versions of nativescript and runtimes. All related fixes will be available in next official release.

You can test it out too in rc --> npm i -g nativescript@rc tns platform add ios@rc and please share if you still encounter the same problems.

@dexter2019

This comment has been minimized.

Show comment
Hide comment
@dexter2019

dexter2019 Sep 23, 2018

I am still facing the same issue? ios12 and xcode 9.4

dexter2019 commented Sep 23, 2018

I am still facing the same issue? ios12 and xcode 9.4

@socalrunner

This comment has been minimized.

Show comment
Hide comment
@socalrunner

socalrunner Oct 3, 2018

Same issue here. ios12 and xcode 9.4. tns run ios stops at refreshing application, won't refresh the application and won't log to the console.

socalrunner commented Oct 3, 2018

Same issue here. ios12 and xcode 9.4. tns run ios stops at refreshing application, won't refresh the application and won't log to the console.

@rosen-vladimirov

This comment has been minimized.

Show comment
Hide comment
@rosen-vladimirov

rosen-vladimirov Oct 3, 2018

Contributor

Hey guys, you need to update your Xcode in order to make tns run ios working on the new iOS version. Reference: #3940

Contributor

rosen-vladimirov commented Oct 3, 2018

Hey guys, you need to update your Xcode in order to make tns run ios working on the new iOS version. Reference: #3940

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment