开发者

warning message "format not a string literal and no format arguments"

I am seeing this warning message "format not a string literal and no format arguments" but it is not showing in which line message is occurring. It is showing when I am debugging and running my application. My file name is addaccount.m and it has some header file connected.

why this not show开发者_JAVA技巧ing line number?

Thanks in advance


It sounds like you have a bad NSLog function call. Search for NSLog in your project and check if that's the thing.


If your pch file (common header) define a macro for nslog as below. You will get the line number.

#   define CustomLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);

And replace NSLog with CustomLog

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜