猿问

隐藏奇怪的不需要的Xcode日志

隐藏奇怪的不需要的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

也许有人已经找到一个可以处理这个问题的配置了?


三国纷争
浏览 567回答 3
3回答

慕运维8079593

试试这个:从xcode菜单打开:产品>方案>编辑方案2-关于环境变量集OS_ACTIVITY_MODE = disable

宝慕林4294392

一条推文给了我答案-https:/twitter.com/rusty大陆架/state/775505191160328194若要阻止Xcode 8 IOS模拟器疯狂地进行日志记录,请在调试方案中设置环境变量OS_Active_MODE=DIVED。啊,真灵。
随时随地看视频慕课网APP

相关分类

iOS
我要回答