Healthkit Error: Missing Com.Apple.Developer.Healthkit Entitlement

Getting Error: Missing com.apple.developer.healthkit entilement

I an trying to deploy an ipa file using free developer account.
I resolved this with paid apple developer account.
thank you

Why can't the api health kit connect to com.apple.healthkit?

You will have to enable HealthKit capability on your application identifier at developer portal. You might have to download the updated provisional profiles too.

Create an entitlements file with your app name (${YourAppName}.entitlements) at /App_Resources/iOS and paste the content below.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.healthkit</key>
<true/>
<key>com.apple.developer.healthkit.access</key>
<array/>
</dict>
</plist>

Now open /App_Resources/iOS/build.xcconfig and add this line,

CODE_SIGN_ENTITLEMENTS = ${YourAppName}/${YourAppName}.entitlements

Replace ${YourAppName} with your app name, now try a clean build.

How do I add this entitlement in Xcode/Swift com.apple.developer.healthkit.background-delivery?

Had the same warning.
Add a new key com.apple.developer.healthkit.background-delivery to your entitlements file, use boolean type and set this to 1.

Apple Source: com.apple.developer.healthkit.background-delivery

Solved the issue for me.
Screenshot

HealthKit background delivery entitlements iOS 15

I contacted Apple Developer support, it seems only paid developer accounts qualify for these “special” entitlements. I’m using a free developer account. Problem solved. It needs to be set in App Store Connect which doesn’t apply to me.

The bundle ID set in the Xcode project matches the bundle ID chosen in the App Store Connect app record



Related Topics



Leave a reply



Submit