When I use XCode I (obviously) put a bunch of NSLog statements in to keep track of some variables and method executions, etc. However, I keep getting this warning:
Format String is not a string literal (potentially insecure). I understand why this is here, but I also understand that it bugs the living crap out of me, especially when I have 20 or 30 of these warnings making it harder to track down real errors. Especially because everything in the string is defined by the system, not the user. Is there some way that I can disable this warning? Here’s an example of a line that causes the warning.
NSLog([@"writeInfo " stringByAppendingString:[self saveFilePath:temp]]);
NSLogtakes in a format string on its own, you do not need to inline create strings. In other words, you only need to write: