有什么方法可以在 Apple Watch 模拟器上模拟锻炼吗?

Is there any way of emulating a workout on the Apple Watch simulator?

有没有办法在 Apple Watch sim 上模拟锻炼?这对测试锻炼应用程序、健康监视器等非常有用。我是 运行 Xcode 7 beta,我找不到它的选项。我在互联网上搜索了关于如何完成的任何提示,但到目前为止还没有发现任何有趣的东西。

WWDC 的 HealthKit speaker 做到了。 (约35分钟观看):D

恐怕你不能那样做。 WWDC 发言人要么手动填充样本,要么使用其他 Apple-non-public-magic.

编辑:

这刚刚在新的 Xcode Beta (3) 中进行了更改 – cyril

我可以亲自确认这个作品。当您开始锻炼时,模拟器会为您生成假数据。

官方 WWDC 2016 更新

根据 WWDC 2016,构建出色的锻炼应用程序,watchOS 模拟器会在锻炼期间生成虚假数据。

Building Great Workout Apps Video

如果您在 23:35 观看该视频,他们会说:

We see some numbers increasing on the screen, this is because the watchOS simulator generates some fake samples for you whenever you start a workout session.