Xcode 8 iOS 10 不间断设备日志
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39601445/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 8 iOS 10 non stop device logs
提问by nitinsh99
My Xcode 8 device log from an iOS 10 iPhone 6s+ is printing the following lines non continuously and I can't stop it or don't know a way to stop it. Any way I can stop these from printing?
我来自 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: I tried disabling touch id but no luck.
PS:我尝试禁用触摸 ID,但没有运气。
Also, I am not talking about console logs. I am talking about the device logs.
另外,我不是在谈论控制台日志。我说的是设备日志。
回答by malhal
Upgrade to macOS Sierra and use the re-designed Console app. It now lists connected devices and allows advanced filtering and searching of the device logs, better than anything Xcode has been able to achieve in the past, e.g. by process name as shown in the screenshot below:
升级到 macOS Sierra 并使用重新设计的控制台应用程序。它现在列出连接的设备并允许对设备日志进行高级过滤和搜索,这比 Xcode 过去能够实现的任何东西都要好,例如通过进程名称,如下面的屏幕截图所示:
Note: this new app unfortunately uses 30% CPU while open, hopefully Apple can fix that, in the meantime be sure to quit it when mobile or endure serious battery drain.
注意:这个新应用很遗憾在打开时使用了 30% 的 CPU,希望 Apple 可以解决这个问题,同时确保在移动或忍受严重电池消耗时退出它。
回答by Nanda
This is just a workaround. You can try using iOS Consolewhich allows you to filter the content.
这只是一种解决方法。您可以尝试使用允许您过滤内容的iOS 控制台。
回答by user6883315
This issue depends NOT on xcode 8 it's also on xcode 7. The "kernel(AppleBiometricSensor)[0] :" messages will gone if you put the iOS device to sleep and back again if you press home.
这个问题不依赖于 xcode 8,它也在 xcode 7 上。如果你让 iOS 设备进入睡眠状态,“内核(AppleBiometricSensor)[0] :”消息就会消失,如果你按下 home 键又会返回。
iOS 10.0.2 Update -> NO FIX
iOS 10.0.2 更新 -> 没有修复
回答by Balagurubaran
Device log only allow NSlog. Please could you try nslog instead print.
设备日志只允许 NSlog。请您尝试使用 nslog 代替打印。