0

When running an app in the Android Emulator, I can type adb logcat *:S ReactNative:V ReactNativeJS:V to view the console statements in a terminal, which is much faster than viewing them in Chrome or other debugger.

Is there a similar command in macOS to view the console statements of an app running in iOS simulator?

laurent
  • 83,816
  • 72
  • 267
  • 404
  • If you're building through XCode go to `View > Debug Area > Activate Console`. You should hopefully see console.logs appear there. – Dan Oct 29 '18 at 10:22

1 Answers1

1

You can just stop the debugger and look for logs in Xcode or you can call this in terminal:

react-native log-ios

Source

Murmeltier
  • 536
  • 6
  • 9