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
This is bcz you have not Open the Capabilities tab in the target editor, and turn on the HealthKit switch.
and to resolve permission issues , add the following keys in info.plist and write causes.. according to your project requirements. 1.Health Update Usage Description 2.Health Records Usage Description 3.Health Share Usage Description
You can go ahead with free developer account also for authorisation purpose. good luck