How to see Xcode Simulator log?

hi

i build a app to xcode 9.2 simulator on Mac OS

i want to see app log on Xcode simulator(not Corona simulator)

for example, i use print(“iPhone X show”)

i chose Xcode simulator > Debug > Open System Log… to view the system log from below link,but it don’t work. i can’t see “iPhone X show”

https://docs.coronalabs.com/guide/basics/debugging/index.html

How do i see Xcode Simulator log with corona sdk?

I’m doing this from memory, but I believe this is accurate.

In XCode, open up the Devices window (Window -> Devices I think), then choose your connected device.  At the bottom is a scrolling window of events that you can view and/or save to a text file.

Hope this helps.

hi

thanks for your help,but Window -> Devices…is connected real device

i want is Xcode simulator log

Can anyone help?

https://stackoverflow.com/questions/10165641/how-can-i-get-the-console-logs-from-the-ios-simulator

dear all

Xcode 9.2 need a new way to see log and thanks fordislam ,he teach me how to do that.if someone need help.here is the answer

Hey, just start up the Console application that you can launch from the Finder:  Applications --> Utilities  --> Console.  

On the Console application, in the left panel you will see a list of devices that are currently in use. For example, on mine I have my MacBook Pro, my iPhone 6s+, and an iPhone X (Xcode simulator). Just select the device you want to view the messages for.

This doesn’t work (nor do the messages appear in the IOS Simulator syslog) in 2018.3221 when simulating IOS 11.2 devices. Compile for IOS SDK 11.2 but simulate an IOS 8.1 device, and print messages appear again. (Mac, XCode 9.2)

I was able to get it to work emulating in the IOS 11 Simulator by launching the Console application (from Spotlight Search) then selecting my device on the left side (my MacBook in this case).

You get too many messages, but I was able to filter them by typing the name of my app on the search bar, clicking return and selecting “Process” as the option to filter by (instead of “Any”).

Then I would only see the messages from my app, including the print statements.

I’m doing this from memory, but I believe this is accurate.

In XCode, open up the Devices window (Window -> Devices I think), then choose your connected device.  At the bottom is a scrolling window of events that you can view and/or save to a text file.

Hope this helps.

hi

thanks for your help,but Window -> Devices…is connected real device

i want is Xcode simulator log

Can anyone help?

https://stackoverflow.com/questions/10165641/how-can-i-get-the-console-logs-from-the-ios-simulator

dear all

Xcode 9.2 need a new way to see log and thanks fordislam ,he teach me how to do that.if someone need help.here is the answer

Hey, just start up the Console application that you can launch from the Finder:  Applications --> Utilities  --> Console.  

On the Console application, in the left panel you will see a list of devices that are currently in use. For example, on mine I have my MacBook Pro, my iPhone 6s+, and an iPhone X (Xcode simulator). Just select the device you want to view the messages for.

This doesn’t work (nor do the messages appear in the IOS Simulator syslog) in 2018.3221 when simulating IOS 11.2 devices. Compile for IOS SDK 11.2 but simulate an IOS 8.1 device, and print messages appear again. (Mac, XCode 9.2)

I was able to get it to work emulating in the IOS 11 Simulator by launching the Console application (from Spotlight Search) then selecting my device on the left side (my MacBook in this case).

You get too many messages, but I was able to filter them by typing the name of my app on the search bar, clicking return and selecting “Process” as the option to filter by (instead of “Any”).

Then I would only see the messages from my app, including the print statements.