Xcode8控制台输出警告

升级Xcode8后运行项目,控制台会报出警告,如下所示:

2016-09-21 14:11:46.415607 DataLocaled[1113:57765] 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
2016-09-21 14:11:46.425617 DataLocaled[1113:57764] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2016-09-21 14:11:46.439428 DataLocaled[1113:57703] subsystem: com.apple.UIKit, category: StatusBar, 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控制台输出警告_第1张图片

第一步:工程名 – Edit Scheme

Xcode8控制台输出警告_第2张图片

第二步:运行状态Run – Arguments – Environment Variables – 添加配置
(OS_ACTIVITY_MODE 并把该配置的Value设置为 disable)

你可能感兴趣的:(Xcode8控制台输出警告)