Hello Ziqiao,
thanks a lot for getting back to me and for answering all my questions from my previous reply.
In the meantime I also created a bug report via the Apple Feedback app and was in contact with Apple that way. After some improvement suggestions of my code, which unfortunately didn't solve the issue, they suggested to create a post here in the developer forum.
So unfortunately after many tries and many ways to reach out to Apple to get this issue fixed, I still don't have a solution and the Watch app is still crashing in the background. I have attached the Swift file with the latest version of the coding for the Watch app, which includes all the suggestions I have received so far but still does not work. Could you please take a look at it again and provide me with a fixed version of this code which does not crash any more?
Thanks a lot.
HealthKitManager.txt
Topic:
App & System Services
SubTopic:
Health & Fitness
Tags: