Search code examples
xcodedebuggingautolayout

Unsatisfiable Constraints Warning not showing in Xcode Debugger


I am no longer seeing the "Unable to simultaneously satisfy constraints" warnings in my Xcode console.

I know that I have unsatisfiable auto layout constraints, because I added the UIViewAlertForUnsatisfiableConstraints symbolic breakpoint and it is occasionally breaking there.

I'm wondering if there is a specific build setting or something that I accidentally disabled which controls this logging behavior.


Solution

  • It turns out that this was not just affecting warnings from AutoLayout being logged, but rather any API that uses the os_log APIs. All logging going thru os_log was disabled, preventing these logs from showing up in the Xcode console.

    This was due to the OS_ACTIVITY_MODE environment variable being set to disabled in the app's scheme. Once removing this environment variable, all logging returned to normal.