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.
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.
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.