Saving (and deleting) Mock Data to HealthKit During Development

Hey all,

I'm currently investigating whether to integrate an app with HealthKit.

I can't seem to find how a dev would go about testing that integration.
This app would only be writing data to HealthKit, not reading from it.

What is a good dev-strategy for working with HealthKit?
  • "No need, non-production builds write into some kind of sandbox, does not affect 'real' HK data" ?

  • Use a separate device + iCloud account

  • Write some test/dev data, and delete

Any suggestion (or links to docs that I missed) are much appreciated!

Replies

I'm interested in this too.

One thing we've tried (unsuccessfully) is to export real health data from a beta tester's phone and import that data into a test phone. There were several apps that claim to be able to import apple health data (export is a feature of Apple Health already), but none of the apps worked.