禁用来自 iOS 10 的 Xcode 8 控制台的额外信息

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39585796/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:17:21  来源:igfitidea点击:

Disable extra information from the Xcode 8 console for iOS 10

xcodexcode8

提问by Mutawe

Ive just updated to the new Xcode 8, but when i run my application it give lots of console information "only when i plug an iOS +10 device or iPhone 7 simulator" but does not show the desired log because of the new information that the logs shows such as:

我刚刚更新到新的 Xcode 8,但是当我运行我的应用程序时,它会提供大量控制台信息“仅当我插入 iOS +10 设备或 iPhone 7 模拟器时”但没有显示所需的日志,因为新信息日志显示如:

nw_endpoint_handler_cancel
nw_resolver_cancel_on_queue
tcp_connection_cancel
sa_dst_compare_internal

How to disable those things?

如何禁用这些东西?

回答by Asad Ali

This question is answered here

这个问题在这里回答

Just set an environment variable OS_ACTIVITY_MODE = disablein your debug scheme. For reference see the image below

只需OS_ACTIVITY_MODE = disable在您的调试方案中设置一个环境变量。参考下图

enter image description here

在此处输入图片说明