iOS 10/Xcode 8 设备上的 NSLog 似乎被截断了?为什么? [英] NSLog on devices in iOS 10 / Xcode 8 seems to truncate? Why?
本文介绍了iOS 10/Xcode 8 设备上的 NSLog 似乎被截断了?为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么在 Xcode 8/iOS 10 中控制台输出显示不完整?
Why the console output shows incomplete in Xcode 8 / iOS 10?
推荐答案
临时解决方案,只需将所有 NSLOG
重新定义为全局头文件中的 printf
即可.
A temporary solution, just redefine all NSLOG
to printf
in a global header file.
#define NSLog(FORMAT, ...) printf("%s
", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
这篇关于iOS 10/Xcode 8 设备上的 NSLog 似乎被截断了?为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文