Behavior of .debug in production

It is mentioned in the talk that log messages can be streamed with physical access to the device. Does this also apply to .debug messages in production? Specifically, can .debug messages be streamed on a deployed version of an app if the device is connected to a computer? With this question I want to find out if sensitive information related to the app implementation can be logged using .debug while making sure that only the developer can see those messages.

Thank you.

Accepted Reply

Yes debug messages can be streamed from a deployed version of an app in console app (Action > Include Debug Messages). So, even at the debug level sensitive information should not be made public. However, if the app is launched from Xcode, Xcode's console will display all runtime data without redaction, in order to help in development.

Replies

Yes debug messages can be streamed from a deployed version of an app in console app (Action > Include Debug Messages). So, even at the debug level sensitive information should not be made public. However, if the app is launched from Xcode, Xcode's console will display all runtime data without redaction, in order to help in development.