I am learning to develop an Apple WatchOS App (stand alone watch app), this is my first ever app, I have written the code to access the HealthKit functionality (Read and Write, I am also able to run the app on my physical device and no errors in console when reading or writing to HealthKit).
I have created an Identifier in the Apple Developer Website and enabled HealthKit
In my app I have also enabled the HealthKit Capabilities
In my Info.plist I have added the following 2 permissions
- Privacy - Health Share Usage Description
- Privacy - Health Update Usage Description
However I am getting the following error when trying to publish the app to AppStore.
Please can someone guide me and tell me what I could be doing wrong here.
My Error App Store Connect Operation Error ERROR ITMS-90164: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. According to the provisioning profile, the bundle contains a key value that is not allowed: '[ ]' for the key 'com.apple.developer.healthkit.access' in 'Payload/app name.app/Watch/app name WatchKit App.app/PlugIns/app name WatchKit Extension.appex/app name WatchKit Extension'."
I have tried to run Product->Clean etc however no luck
Thank you