本文主要是介绍Xcode8控制台输出警告,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Xcode8控制台输出警告:subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0
昨天更新了Xcode8,今天新建工程的时候发现控制台会多出很多log。因为前天用的Xcode7工程还好好的。所以猜测是Xcode升级之后的一些设置或者工程配置原因。
2016-09-19 21:08:37.327067 Swift03[3103:305165] 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-09-19 21:08:37.333751 Swift03[3103:305165] 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-19 21:08:37.349856 Swift03[3103:305160] 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-19 21:08:37.376856 Swift03[3103:304970] 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-09-19 21:08:37.440966 Swift03[3103:304970] 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控制台输出警告的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!