How to save a device's console log from Xcode

I'm assuming it's possible to stream the device log to a file, any clues? I'm trying to debug an app installation issue I am having with iOS 17, and hunting through the Console log is just super noisy. I want to just attach the log so I can hand it over to my developers on the team, but I don't seem to be seeing a way to save the Console log I am looking at in Xcode. Basically I'm looking for the equivalent of an adb shell logcat +pipe to storage that Is not that hard to do on an Android. By any means possible? I've not even tried using LLDB, will it let me do this, if so any clues where to start?

Replies

Xcode 15 beta’s new logging feature is built on top of the system log. The system has long since supported the ability to capture log snapshots. There are two great options for this:

  • If you have the device attached, you can run log collect from Terminal.

  • If not, you can trigger a sysdiagnose log, which includes a log snapshot and a bunch of other stuff.

For more hints and tips, and links to documentation, see Your Friend the System Log.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"