Xcode 8 iOS 10不间断设备日志

时间:2016-09-20 18:38:15

标签: xcode ios10

来自iOS 10 iPhone 6s +的我的Xcode 8设备日志不连续打印以下行,我无法阻止它或者不知道如何阻止它。我可以用任何方式阻止这些打印吗?

Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: Status={0x80, 0x20, 00, 0x10, 00, 00, 00, 0x11, 0x1, 0x1, 00, 0x4, 0xf0, 0x2, 0x9, 00}
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: Sent message of 20 bytes
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: exit, err=0x0
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: mask=0xFF, bad=false
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: exit
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: entry
Sep 20 14:34:41 iPhone kernel(AppleBiometricSensor)[0] <Debug>: exit
Sep 20 14:34:42 iPhone kernel(AppleBiometricSensor)[0] <Debug>: entry
Sep 20 14:34:42 iPhone kernel(AppleBiometricSensor)[0] <Debug>: entry
Sep 20 14:34:42 iPhone kernel(AppleBiometricSensor)[0] <Debug>: txBufferLength=7 rxBufferLength=23
Sep 20 14:34:42 iPhone kernel(AppleBiometricSensor)[0] <Debug>: Wrote:     7B | 0x80 0x10 0x00 0x07 0x00 0x00 0x00
Sep 20 14:34:42 iPhone kernel(AppleBiometricSensor)[0] <Debug>:  Read:    23B | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0x20 0x00 0x10 0x00 0x00 0x00 0x11

PS:我试过禁用触摸ID,但没有运气。

另外,我不是在谈论控制台日志。我在谈论设备日志。

enter image description here

4 个答案:

答案 0 :(得分:21)

升级到macOS Sierra并使用重新设计的Console应用程序。它现在列出了连接的设备,并允许对设备日志进行高级过滤和搜索,这比Xcode过去能够实现的任何功能都要好,例如:按进程名称显示,如下面的屏幕截图所示:iPhone log filtered by process

enter image description here

注意:这个新的应用程序在打开时不幸使用了30%的CPU,希望Apple可以解决这个问题,同时确保在移动时退出或者忍受严重的电池耗尽。

答案 1 :(得分:7)

这只是一种解决方法。 您可以尝试使用iOS Console来过滤内容。

答案 2 :(得分:5)

此问题不取决于xcode 8,它也取决于xcode 7。 “内核(AppleBiometricSensor)[0]:”如果您将iOS设备置于睡眠状态并且如果您按回原点则再次返回将消失。

iOS 10.0.2更新 - &gt;没有固定

答案 3 :(得分:-1)

设备日志仅允许NSlog。请你试试nslog而不是打印。