Ok, I've got a spare device and I have reset it and created a brand new Apple ID and now the above code works exactly as I would expect.
So this leads me to the following question. How can I reset my HealthKit for my personal Apple ID, without losing my data as I would like to keep it?
Topic:
App & System Services
SubTopic:
Health & Fitness
Tags: