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:
- In another terminal window:
$ tail -f ~/Library/Logs/CoreSimulator/<simulator-hash>/system.log - Alternatively, you can attach Console.app (in Xcode) to your simulator.