11

Is there any hidden button to see the live device logs in Xcode 9.3 or apple is forcing us to go to console to see device logs it can also be a bug.

I cannot see any more a small arrow at bottom that we used to have in Devices and Simulator tab of Xcode.

Please refer screen attached.enter image description here

Rein rPavi
  • 3,368
  • 4
  • 22
  • 32

4 Answers4

21

In Xcode 9.3 device logs are moved to new location.To get on the new screen you have to navigate through Xcode -> Windows -> Device & Simulators.On device and simulators screen there is a new button added saying open console.

enter image description here

Click on an open console button, then you will be navigated to a new screen.I believe here you will get device logs at runtime.

Console Log Screen

Vaibhav
  • 865
  • 2
  • 10
  • 19
  • Thanks for the answer, but as mentioned in my question is apple forcing us now to use console, we are just opening console application now from Xcode. – Rein rPavi Apr 30 '18 at 03:44
  • 1
    Also, now there is noway to export live logs which we were able to do it in previous versions. You have to select the logs to export them. – Rein rPavi Apr 30 '18 at 03:45
3

Simply,

1. Xcode -> Windows -> Device & Simulators
2. Click: Open Console

It will start showing logs.

Important:

For Swift project print(" ")/debugPrint(" ") logs won't show here. Use NSLog("Something") to get in console application.

1

The other (incorrectly downvoted) answer is correct. When I click the Console button in the Devices window...

enter image description here

...I see the device's live console messages scrolling by in the Console app:

enter image description here

matt
  • 515,959
  • 87
  • 875
  • 1,141
  • 1
    Hey Matt thanks for the answer, if we do this there is noway to export live logs which we were able to do it in previous versions. you have to select the logs to export. – Rein rPavi Apr 30 '18 at 07:03
  • Console app lets you filter the logs. It is much _more_ powerful. – matt Apr 30 '18 at 08:42
  • I also agree with Matt on how much powerful and flexible to use console app.There are multiple filter parameters to choose such as PID, Date & Time, Thread ID and much more. – Vaibhav May 02 '18 at 11:21
  • Two steps forward, one step back. There is no good way to export the logs to a file – 1800 INFORMATION Jan 30 '19 at 21:51
0

My logs will randomly disappear - usually when the app crashes. If I delete the app from the device, then the logs return on next build.

zachary
  • 108
  • 1
  • 9