Enumeration Case

errorAuthorizationNotDetermined

Your app has not yet asked the user for the authorization required to complete this task.

Declaration

case errorAuthorizationNotDetermined = 5

Discussion

This error occurs when your app does not request proper authorization before calling any other HealthKit methods. For more information on setting up HealthKit, see HealthKit