Search code examples
iosinstrumentsios-ui-automationnslogxcode-instruments

how to see my print/NSLog outputs when using Instruments Automation, with simulator?


I'm new to Instruments, and I'm trying to use Instruments Automation to send location events to my Xcode Swift project, which uses MapKit, but using a SIMULATOR (c.f. real device).

I've got this working by:

  • running my project in PROFILE mode in Xcode
  • then going to instruments automation with a script that uses "setLocationWithOptions"

But neither in Xcode or Instruments do I see my normal log output (print or NSLog) I use to monitor the app? How would I see print line outputs when doing this? Or is the different approach I should be taking?


Solution

  • Xcode 8

    If talk about simulator, you need to run your application first and then, record running application through you instrument, Zombies, for example.

    What you need to choose for recording: select running application