##Xcode8:"subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0" 的警告

在更新了Xcode8以后,每次创建一个项目后都会打印很多莫名其妙的警告,如下 :

2016-10-15 20:22:58.587445 03-MenuController[11298:571624] 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: 0
2016-10-15 20:22:58.588287 03-MenuController[11298:571624] 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-10-15 20:22:58.625466 03-MenuController[11298:571621] 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-10-15 20:22:58.693346 03-MenuController[11298:571056] 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
2016-10-15 20:22:58.778224 03-MenuController[11298:571056] subsystem: com.apple.UIKit, category: GestureEnvironment, enable_level: 0, persist_level: 0, default_ttl: 1, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-10-15 20:22:58.810373 03-MenuController[11298:571056] subsystem: com.apple.SystemConfiguration, category: SCNetworkReachability, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
2016-10-15 20:22:59.014302 03-MenuController[11298:571056] subsystem: com.apple.BackBoardServices.fence, category: App, 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

通过百度一下,结果网络上有大神已经解决了这个问题,但是具体没有说明原因要解决这个问题需要去工程中去添加一项配置:

工程名字 - Edit Scheme - Run - Arguments - Environment Variables,在Environment Variables下边添加:OS_ACTIVITY_MODE, value值设置为disable

如图:


##Xcode8:
Paste_Image.png

##Xcode8:
Paste_Image.png

然后点击Close即可. 具体原因我还不太清楚,请大神指点.

你可能感兴趣的:(##Xcode8:"subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0" 的警告)