When running an iOS app in the simulator, there's an environment variable NSObjCMessageLoggingEnabled
that causes all objc_msgSend
calls to be logged out to a file. (Detailed explanation).
I'm trying to trace out all the messages that are being sent in my app, but I can't run it in the simulator. It has to be on a physical device because I'm interacting with hardware through the lightning connector. For the same reason, I can't attach a debugger to the process.
It would be helpful to write a log to disk like the one created with NSObjCMessageLoggingEnabled
, but write it locally in my app's Documents directory, or similar.
Is this possible?