Jeff Johnson (My apps, PayPal.Me, Mastodon)

How to fix the disastrous new Xcode 15 console

October 19 2023

This is a follow-up to my recent blog post Xcode 15 logs nil as an empty string, not (null). I've now found three different bugs in the new Xcode 15 console.

  1. FB13268283 Xcode 15 console logs nil as empty string rather than (null)
  2. FB13270074 Console logs missing on first run after launching Xcode 15
  3. FB13289059 Xcode 15 console logs truncated

In my opinion, the new Xcode 15 console is awful, a disaster. Fortunately, I've found a way to restore the previous console behavior from Xcode 14 and earlier. This is actually noted in the Xcode 15 release notes, but I wanted to highlight the solution here in case, like me, you hadn't read the release notes recently:

Console

New Features

Resolved Issues

You need to set the environment variable IDELogRedirectionPolicy to the value oslogToStdio in the Run section of your app's Xcode scheme. I wish there were a way to make this behavior the default in Xcode Settings! (FB13289075 Provide a setting to make oslogToStdio the default.)

Incidentally, I'm not sure how the release notes can say that "This may cause long messages to more commonly appear truncated in the debug console" is among the "Resolved issues", for it's still very much an unresolved issue.

Jeff Johnson (My apps, PayPal.Me, Mastodon)