I am initializing a mutable string and then logging it as follows.
NSMutableString* mStr = [[NSMutableString alloc] init]; mStr = (NSMutableString*) someText
If mStr was set to something like %@, NSLog would try to load an object argument, fail, and probably crash badly. There are other format strings which can also cause havoc.
mStr
%@
NSLog
If you need to just log a string without any marker text, use:
NSLog(@"%@", mStr);