首页 > 代码库 > xcode8 关闭控制台打印不用信息

xcode8 关闭控制台打印不用信息

控制台打印的信息如下 

2016-10-15 10:13:17.774543 LGLSearch-Dome[1656:356106] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 02016-10-15 10:13:17.777413 LGLSearch-Dome[1656:356106] subsystem: com.apple.UIKit, category: HIDEventIncoming, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0

解决办法:

Xcode8里边 Edit Scheme... -> Run -> Arguments, 在Environment Variables里边添加 OS_ACTIVITY_MODE = disable

步骤1.

技术分享

步骤2.

技术分享

步骤3.

技术分享

结束设置

xcode8 关闭控制台打印不用信息