I recently renewed a provisioning profile and now i'm getting the following warning (and failure when building during code signing):
warning: Provisioning profile "[redacted]" for "OneMedly" contains entitlements that aren't in the entitlements file: com.apple.developer.healthkit.background-delivery. To use these entitlements, add them to your entitlements file. Otherwise, remove unused entitlements from your provisioning profile. (in target 'OneMedly' from project 'OneMedly')
The app does use HealthKit and the provisioning profile (which apple generates) has HealthKit and if I inspect the provisioning profile, it does indeed contain this healthkit.background-delivery attribute.
This doesn't seem to be problem for debug builds, only for release builds.
Does anyone know what is causing this warning/error? Is there a workaround?