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

No console.log output Xcode 9 iOS 11 #3141

Closed
terreb opened this issue Sep 29, 2017 · 11 comments · Fixed by NativeScript/ios-sim-portable#95
Closed

No console.log output Xcode 9 iOS 11 #3141

terreb opened this issue Sep 29, 2017 · 11 comments · Fixed by NativeScript/ios-sim-portable#95
Assignees
Milestone

Comments

@terreb
Copy link

terreb commented Sep 29, 2017

Please, provide the details below:

Did you verify this is a real problem by searching [Stack Overflow]

I took time to search, but haven't found anything mentioning this issue.

Tell us about the problem

After upgrade to Xcode 9 and using iOS 11 simulator I'm not seeing console.log output after "tns run ios" any more.

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.2.1
  • Cross-platform modules: tns-core-modules 3.2.0
  • Runtime(s): tns-ios 3.2.0

Xcode 9.0 (9A235)
Simulator iPhone 6 iOS 11.0 (15A372)

@KristianDD
Copy link
Contributor

Thank you for the report. I can confirm that this is indeed an issue and we are currently working on a resolution.

As a temporary workaround open the Console app on Mac and from the Devices list select the connected device. Now in the right pane you can see all messages coming from the selected device. In the Search field type proc:YourAppName to see only the log coming from yours app process.

@terreb
Copy link
Author

terreb commented Sep 29, 2017

@KristianDD, ok, thank you for the tip!

@justindujardin
Copy link

Another workaround is to use the tns debug ios and the console output will be shown in the inspector.

@terreb
Copy link
Author

terreb commented Oct 2, 2017

@justindujardin, yeah, I know that, but "tns debug" became so slow and hangs too often after update to Xcode 9 / iOS 11 that I would use "run" instead if I could.

@briosheje
Copy link

@terreb If you use the watch you shouldn't have huge issues with tns debug. I've had to use it aswell since Xcode 9, it's just a bit slow when you run the instance, but as long as you use what you should be able to work with it, it shouldn't take a significant time to load everything (about 5 to 10 seconds in my case).

@justindujardin
Copy link

@terreb Agreed that the inspector is not a great workaround. I ended up downgrading because I didn't need XCode 9, it was installed as part of the automatic update process.

The console being gone really hindered my development, and as you point out the inspector makes for really slow iterations, so it made sense to downgrade XCode until a fix is published. Now my console is back, and I only have to worry about the inspector slowly eating itself when I have to debug something. 😅

If it makes sense for your project, and you have a valid developer account with Apple, you can downgrade like this:

@NathanaelA

This comment was marked as abuse.

@terreb
Copy link
Author

terreb commented Oct 3, 2017

@justindujardin, I can see logs for simulators with iOS <11, so no need to downgrade Xcode for that:)

@NathanaelA, wow, thank you a lot! This is an easy and really cool workaround that works perfectly fine for me.

@fuyacho-takatsuji
Copy link

@NathanaelA :: it does not work :: ERROR Could not start service com.apple.syslog_relay

@NathanaelA

This comment was marked as abuse.

@dtopuzov
Copy link
Contributor

dtopuzov commented Oct 25, 2017

@fuyacho-takatsuji @terreb @justindujardin @briosheje
The issue is fixed in nativescript@next and will be officially released with 3.3.0.

Natalia-Hristova pushed a commit to NativeScript/nativescript-cli-tests that referenced this issue Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants