How to solve this error with healthkit?

后端 未结 6 985
臣服心动
臣服心动 2021-02-04 20:04

I\'m adding code for healthkit in my ios Swift app, but I\'m getting an error...

 /* Ask for permission to access the health store */
override func viewDidAppear         


        
6条回答
  •  误落风尘
    2021-02-04 20:27

    Activate Health kit in Capabilities

    enter image description here

    If still not worked

    check:

    • Does your provisioning profile includes support for HealthKit?
    • Does your bundle identifier use the same ID referenced in the provisioning profile with support for HealthKit?

提交回复
热议问题