ios Xcode 8 控制台垃圾?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37930506/
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-08-31 09:28:34  来源:igfitidea点击:

Xcode 8 Console Garbage?

iosxcodexcode8

提问by ellman121

Has anybody else had issues with the Xcode 8 console showing a bunch of random stuff? I don't want to have all of this cluttering my debug messages and logs. Does anybody know how to turn this off?

有没有其他人对 Xcode 8 控制台显示一堆随机内容有疑问?我不想让所有这些都弄乱我的调试消息和日志。有人知道怎么关掉吗?

EDIT: The release notes specify that the console might dump unhelpful stuff for watchOS, but not for iOS.

编辑:发行说明指定控制台可能会为 watchOS 转储无用的内容,但不会为 iOS 转储。

Example: example of garbage in console

例子: 控制台中的垃圾示例

回答by melbic

You can disable that output with a environment variable.

您可以使用环境变量禁用该输出。

In Product>>Scheme>>Edit Scheme...>>Run add the following environment variable: Name:OS_ACTIVITY_MODE, Value: disable

在 Product>>Scheme>>Edit Scheme...>>Run 添加以下环境变量: Name: OS_ACTIVITY_MODE, Value:disable

Originally described on Twitter here.

最初在 Twitter 上描述在这里

enter image description here

在此处输入图片说明

回答by triple7

It seems this information is not garbage and can help with the variables view when checking system framework calls. However, this seems more related to debugging for the engineers at Apple and seems to have been logged as an xcode 8 issue. No idea when this will be resolved.

似乎这些信息不是垃圾,可以在检查系统框架调用时帮助查看变量。但是,这似乎与 Apple 工程师的调试更相关,并且似乎已被记录为 xcode 8 问题。不知道什么时候能解决。

I also checked (started) the key binding with a "show" and "display" filters but none are relative to this. Below is apple's note:

我还使用“显示”和“显示”过滤器检查(启动)键绑定,但没有一个与此相关。下面是苹果的笔记:

? Xcode Debug Console shows extra logging from system frameworks when debugging applications in the Simulator. (27331147, 26652255).

? 在模拟器中调试应用程序时,Xcode 调试控制台会显示来自系统框架的额外日志记录。(27331147, 26652255)。