When Xcode launches a process it will unredact the logging for that single process if it is for an application that you are privileged to view. (One that is able to be attached with a debugger)
Oh! So because I’m running the debug build of the app, from Xcode, I’m able to see unredacted logs, just like I would in the console, even though I’m exporting them.
Testing this exact same code with a TestFlight build confirms the private data is correctly redacted, so this absolutely solves my problem.
Thank you so much!
Topic:
App & System Services
SubTopic:
Core OS
Tags: