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

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

问题描述

我正在寻找一种实时读取手表syslog的方式,类似于设备控制台的方式用于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调试控制台实时读取文本的解决方案(尽管我更喜欢一种以标准方式连接到手表的syslog的方法:).

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 :)..

谢谢!

推荐答案

我知道这是一个旧线程,但是对于任何进行此搜索的人,都可以这样做:

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系统控制台查看手表消息.现在,我遇到一个奇怪的问题,我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 syslog(NSLog())的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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