I've got a couple of projects that use HealthKit (that were building without this warning, just fine, for months) that are both suddenly generating the following warning when building against a device or the Generic iOS Device:
Code Signing Warning: Provisioning profile "iOS Team Provisioning Profile: com.xxx.xxx" for "XXX" contains entitlements that aren't in the entitlements file: com.apple.developer.healthkit.access. To use these entitlements, add them to your entitlements file. Otherwise, remove unused entitlements from your provisioning profile.
HealthKit is enabled in the Capabilities, linked in the project, and has been for some time (and I've checked the .entitlements file, it's enabled). The AppID also has HealthKit enabled, I've checked it on the developer portal. There are no other build warnings or errors. This issue just happened out of the blue, never had any build issues with HealthKit in the project before.
I tried turning off the "Automatically manage signing" setting on the project, then enabling it again. I've tried clearing all the .mobileprovision profiles from /Library/MobileDevices/Provisioning Profiles, etc .Nothing works.
It looks to me like the provisioning profile has some new key called "com.apple.developer.healthkit.access" and Xcode isn't finding that dependency during its check, because what's in the .entitlements file is a key called "com.apple.developer.healthkit".
Anyway, I cannot get rid of this warning, any help would be appreciated. Anybody else seen this issue?