When I'm using this line of code :
NSLog([NSString stringWithFormat:@"Connection failed: %@", [error description]]);
I get the following warning :
Format string is not a String litral(Potentially insecure)"
When I'm using this line of code :
NSLog([NSString stringWithFormat:@"Connection failed: %@", [error description]]);
I get the following warning :
Format string is not a String litral(Potentially insecure)"
You have to use an NSString
constant as first parameter of NSLog
in order to avoid exploits. Change your code to :
NSLog(@"Connection failed: %@", [error description]);
The exploit is more explained on this SO question.