NSLog on devices in iOS 10 / Xcode 8 seems to truncate? Why?

iPeta picture iPeta · Sep 20, 2016 · Viewed 16k times · Source

Why the console output shows incomplete in Xcode 8 / iOS 10?

enter image description here

Answer

xfdai picture xfdai · Sep 21, 2016

A temporary solution, just redefine all NSLOG to printf in a global header file.

#define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);