One of the third-party binary libraries I'm using has an unfortunate NSLog
statement that I'd like to avoid at runtime (it leaks personal information). The framework developer is unwilling to change this line and I have no alternatives (binary patching is not an option, nor switching providers).
Is it possible to define my own NSLog
symbol that I could use to filter out the unwanted logging and delegate other logging calls to the original NSLog? Would Apple reject an app that overrides core framework symbols?