实时读取 Apple Watch 系统日志 (NSLog()) [英] Reading Apple Watch syslog (NSLog()) in real-time

查看:83
本文介绍了实时读取 Apple Watch 系统日志 (NSLog())的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种实时读取手表系统日志的方法,类似于Device Console这个用于 iPhone.

I'm looking for a way to read the watch's syslog in real-time, similar to the way Device Console or this do it for the iPhone.

如果我在看书的时候把手机用usb插到电脑上就可以了.

It's ok if the phone will be plugged by usb to the computer at the time I'm reading.

在这一点上,我什至会选择一种解决方案,它以某种方式从 Xcode 调试控制台实时读取文本,真的(尽管我更喜欢一种以标准方式连接到手表系统日志的方法:)..

At this point I'll even settle for a solution that somehow reads the texts at real-time from Xcode debug console, really (though I will prefer a way to hook in to the watch's syslog in a standard fashion :)..

谢谢!

推荐答案

我知道这是一个旧线程,但对于登陆此搜索的任何人来说,有办法做到这一点:https://forums.developer.apple.com/thread/94693.

I know this is an old thread, but for anyone who lands on this search, there is way to do this: https://forums.developer.apple.com/thread/94693.

总而言之,将诊断配置文件加载到手表上,(论坛帖子中的链接)然后您可以使用 MacOS 系统控制台查看手表消息.现在我遇到了一个奇怪的问题,其中一些消息 I NSLog() 出现而其他消息没有出现,但您可以实时看到观看消息.

To summarize, load a diagnostic profile onto the watch, (link in the forum post,) then you can use MacOS system console to see the watch messages. Right now I'm having a strange issue where some of the messages I NSLog() appear and others don't, but you can see the watch messages in real time.

这篇关于实时读取 Apple Watch 系统日志 (NSLog())的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆