farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
10/06/12 06:16 AM (13 years ago)

Format String Issue fix

Hi, I have updated to the latest Xcode version and I was getting many "Format Strings" warnings where there was none previously. It didn't stop the app from running but I don't like warnings. So, after a bit of tinkering I found that adding an extra character on the guilty file solved the issue. The faulty line reads: [BT_debugger showIt:self:[NSString stringWithFormat:@"Attachment not found in cache: @", [self saveAsFileName]]]; Just add a percentage sign in front of the second @ and it solves the issue, the line should read: [BT_debugger showIt:self:[NSString stringWithFormat:@"Attachment not found in cache: %@", [self saveAsFileName]]]; I hope it helps somebody!! Farcat
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
10/06/12 06:18 AM (13 years ago)
Oops, the issue has already been covered on a recent post, more details: https://www.buzztouch.com/forum/thread.php?tid=359E5C77E2175F0332B7CAF&currentPage=3
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.