Xcode 8 Console Garbage? [duplicate]

2019-01-07 04:40发布

问题:

This question already has an answer here:

  • Hide strange unwanted Xcode logs 11 answers

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?

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

Example:

回答1:

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

Originally described on Twitter here.



回答2:

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.

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).



标签: ios xcode xcode8