解决真机无输出 宏输出

#ifdef DEBUG
#define NSLog(format, ...) printf("
[%s] %s [第%d行] %s
", __TIME__, __FUNCTION__, __LINE__, [[NSString stringWithFormat:format, ## __VA_ARGS__] UTF8String]);
#else
#define NSLog(format, ...)
#endif
原文地址:https://www.cnblogs.com/yevgeni/p/6042945.html