OGeek|极客世界-中国程序员成长平台

标题: ios - 隐藏奇怪的不需要的 Xcode 日志 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 17:30
标题: ios - 隐藏奇怪的不需要的 Xcode 日志

当使用 Xcode 8+ 并创建一个新的空白项目时,运行应用程序时会出现以下日志:

2016-06-13 16:33:34.406093 TestiOS10[8209:100611] bundleid: com.appc.TestiOS10, enable_level: 0, persist_level: 0, propagate_with_activity: 0
2016-06-13 16:33:34.406323 TestiOS10[8209:100607] Created DB, header sequence number = 248
2016-06-13 16:33:34.409564 TestiOS10[8209:100611] subsystem: com.apple.UIKit, category: HIDEvents, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0
2016-06-13 16:33:34.504117 TestiOS10[8209:100607] Created DB, header sequence number = 248
2016-06-13 16:33:34.548023 TestiOS10[8209:100607] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0
2016-06-13 16:33:34.568458 TestiOS10[8209:100608] subsystem: com.apple.FrontBoard, category: Common, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0

也许有人已经找到了可以处理的配置?



Best Answer-推荐答案


试试这个:

1 - 从 Xcode 菜单 打开:Product > Scheme > Edit Scheme

2 - 在您的环境变量上设置 OS_ACTIVITY_MODE = disable

Screenshot

关于ios - 隐藏奇怪的不需要的 Xcode 日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39489715/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (https://ogeek.cn/) Powered by Discuz! X3.4