Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HealthKit iTunes Connect entitlement error

I had enabled health kit capability in Xcode and HealthKit service in Developer center at some point for my app. But then I disabled it right away as I decided to not include it. My app doesn't have any HealthKit related stuff in it, I have disabled the capability and also disabled it in developer center. However, when I try to submit my app in iTunes connect, it gives me error:

Apps that use the entitlements [com.apple.developer.healthkit] must have a privacy policy URL for [English]. If your app doesn’t use these entitlements, remove them from your app and upload a new binary.

When validating the app in Xcode, it still shows me health kit entitlement: com.apple.developer.healthkit

Any idea how I can completely get rid of this entitlement from my app? I have been struggling for over a day now :(

NOTE: this is a new app, it's not available in the app store yet.

like image 602
sudoExclaimationExclaimation Avatar asked Feb 23 '15 01:02

sudoExclaimationExclaimation


2 Answers

I faced exactly the same problem, and I finally fixed it. Be sure that you remove any reference to HealthKit not only in your app but also in your developer profile for this app.

Go To the developer portal

  1. Click the App IDs link on the Certificates, Identifiers & Profiles developer page

  2. Select the App ID you are using in your app

  3. Click the Edit button

  4. If HealthKit is enabled, disable it and click the Done button

  5. Regenerate all provisioning profiles using that App ID

Open Xcode

  1. Turn Healtkit to off in your project (it looks like you already did it, I write it for the other)

  2. Check you have no trace of Healtkit in your entitlement file, plist file and HealthKit is not in your Frameworks.

  3. select Xcode > Preferences > Accounts. Select your team and click View Details

  4. Click the refresh button in the bottom left corner to refresh your provisioning profiles

  5. Restart Xcode and rebuild your project

  6. Submit your app. During the submit process, you should not see the Healtkit Entitlement anymore.

NB : If you still face the problem, I suggest you to delete all your provisioning profile at step 5 and try again. Don't forgot to restart XCode.

like image 86
NoobOverflow Avatar answered Sep 17 '22 20:09

NoobOverflow


There is option of Privacy Policy URL inside the APP, just fill that URL with the URL of your company and save and submit the application.

like image 34
Sujit Baranwal Avatar answered Sep 20 '22 20:09

Sujit Baranwal