This online article is very useful for Objective-C programmers.
“Sometimes we really need to log all messages that are sent in our applications, for iOS or Mac OS. Unfortunately this is not really simply to do and Apple disabled some cool stuff in iOS to prevent a reverse engineer of their frameworks.
I discovered a great solution a couple of months ago that works for Mac OS and iOS (Simulator Only).”