Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jbristowe/6f99f17e50956f5013fa to your computer and use it in GitHub Desktop.
Save jbristowe/6f99f17e50956f5013fa to your computer and use it in GitHub Desktop.

NativeScript LiveSync with Console Output with iOS Simulator

NativeScript LiveSync does not currently emit console output (via console.log()) via the CLI:

$ tns livesync ios --emulator —watch

There's a couple of ways to make this work. In both cases, you'll need the hash for the iOS simulator/device you're targeting:

$ instruments -s devices

Once you have the hash value, you can trace console.log() statements in two ways:

  1. In another terminal window: $ tail -f ~/Library/Logs/CoreSimulator/<simulator-hash>/system.log
  2. Alternatively, you can attach Console.app (in Xcode) to your simulator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment