1.替換系統(tǒng)Log 輸出帶 類名 行數(shù)
#ifdef DEBUG
#define NSLog(FORMAT, ...) fprintf(stderr,"%s [line: %d] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
#endif
把以上代碼寫到自己的pch 文件里面就行了