-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
iOS logging doesn't work #9441
Comments
Logs seem to be working fine when I build the app through Xcode. Seems like a bug still so I'll leave this issue open. |
Are you talking about a dev or production release? I can't get logs to appear in a production app. |
@facebook-github-bot label Icebox |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/ios-logging-doesnt-work ProductPains helps the community prioritize the most important issues thanks to its voting feature. Also, if this issue is a bug, please consider sending a PR with a fix. |
@facebook-github-bot close |
@charpeni tells me to close this issue. If you think it should still be opened let us know why. |
I just ran into this problem. Logging has been working fine in Dev mode and all of a sudden, no console.log output to stdout in the console window of the |
Same problem happened for me yesterday. Any solutions? |
Similar-but-different issue (Mac OS X, iOS Simulator, Nuclide) I am hitting at the moment: My console.log()s all were appearing successfully in my Terminal output from "react-native log ios", but now they are not. I do see other log messages, just not mine. I just tried doing Cmd-D and saw "Stop Remote JS Debugging" so clicked that and... my console messages are now appearing in the logs again, hooray. In case that helps anybody else... |
I am having similar issues recently. I can see all the console.log() outputs if I run my app from Xcode (within Xcode Debug area), but I don't see the correct log if I run via the command line (which I was used to do). I start my app with |
@ademcan I'm experiencing the same thing as you. Started once I updated to Xcode 9. |
same issue here, as stated by @matthewlarge and @ademcan |
after upgrading to XCode 9 I can't get simulator log anymore (using react-native log-ios). However, I was able to get the log using Console.app |
I gave up and am running my RN app from Xcode only (to be able to see the logs)... |
Facing the same issue as @ademcan (After upgrading to xcode 9, I am no longer able to view my logs) |
Same issue here.... any update? |
Same |
guys, for now you can use the Console.app of MacOS to get logs from the simulator |
I can't see console.log of xCode9 iOS simulator too.... |
I can't see logs using react-native log-ios or in xcode with xcode 9. @ivzeus, how do I see all my console.log in Console.app? When I look in Devices > iPhone 7 (simulator) there are none of my console.log. |
This issue is still current and should be reopened. |
I can't see any console.log message by |
@jslok that's strange, I just open Console app and all my logs are there |
@ivzeus how do you stop the live feed and just display logs? |
@ivzeus yes this is the right place using the UI, but |
@ajkhatibi: I add some prefix in my console.log and filter them out |
Any updates on this? |
@ivzeus My console app (spotlight search -> "console" -> console app) doesn't look like that. What steps did you take to get there? |
It actually started working for me now. I stoped using expo and just regular react native init and when I load the app I just use the remote debugger and it works fine. Not sure sure way it might be because of expo |
If you were unlucky like me to have your app default setup running as "Release", you will not see the logs in xcode or the Console App. |
I'm experiencing the same. Any resolutions? |
Can confirm that this is an issue. I see the following "note" upon running react-native log-ios: "Most system logs have moved to a new logging system. See log(1) for more information." |
@HadrienPierart Where exactly is Edit Scheme? |
As @cbartondock commented, the text: "NOTE: Most system logs have moved to a new logging system. See log(1) for more information." is visible in the log and console.logged text does not show up in this log - and this applies to both the log visible using |
running the app from xcode does show console logs but running react-native log-ios does not. Logs are also shown in chrome devtools console when remote debugging. System logs as @sinewave440hz pointed it out shows the same as running react-native log-ios Running xcode 9.3 and react-native 0.54.4 |
This should be re-opened. Not working in RN 55 |
If you want to watch your IOS simulator JS
|
@enzomd thanks, that looks incredibly useful. Where did you discover this? |
@npomfret Reading the |
Thank you @enzomd, do you know how to remove the metadata from the logs? |
@koloff Save this to Shell pipes do not work with the output from Also note that some log sources (other than the iOS simulator)
|
thanks @enzomd that did work! |
Thank you @enzomd! |
on real device if i runnung "react-native log-ios" i get No active iOS device found. how it possible to get the logs |
All I ever see when I run react-native log-ios is a ton of messages that say |
Hello, currently using React-Native .31 on Mac. Everything was working fine yesterday but all of a sudden my logging isn't working... There's no error messages just react-native log-ios doesn't output any logs. I've tried rebuilding the project / restarting simulator (iPhone 6 / iOS 9.3), but nothing. Any suggestions to debug what's wrong?
The text was updated successfully, but these errors were encountered: