From 74950d37f2333d29cbf3bfc9ca4a60820498c2d3 Mon Sep 17 00:00:00 2001 From: Edris Date: Sat, 3 Oct 2026 18:11:12 +0200 Subject: [PATCH] Enable HealthKit capability on App IDs Map the com.apple.developer.healthkit entitlement to the HealthKit App ID feature (HK421J6T7P) and allow it for free and paid teams, so the provisioning profile includes HealthKit and the signer keeps the entitlement instead of stripping it. --- Sources/Models/Entitlement.swift | 3 ++- Sources/Models/Feature.swift | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Sources/Models/Entitlement.swift b/Sources/Models/Entitlement.swift index 839cec3..ea0de95 100644 --- a/Sources/Models/Entitlement.swift +++ b/Sources/Models/Entitlement.swift @@ -79,7 +79,8 @@ public extension Entitlement { .extendedVirtualAddressing, .teamIdentifier, .keychainAccessGroups, - .applicationIdentifier + .applicationIdentifier, + .healthKit ] static let paidEntitlements: Set = [ diff --git a/Sources/Models/Feature.swift b/Sources/Models/Feature.swift index 554fc75..683c1b1 100644 --- a/Sources/Models/Feature.swift +++ b/Sources/Models/Feature.swift @@ -46,6 +46,7 @@ public struct Feature: RawRepresentable, Hashable, Codable, Sendable, Expressibl case .pushNotifications: self = .pushNotifications case .gameCenter: self = .gameCenter case .inAppPurchase: self = .inAppPurchase + case .healthKit: self = .healthKit default: return nil } @@ -74,10 +75,12 @@ public extension Feature { static let increasedMemoryLimit: Feature = "increasedMemoryLimit" static let extendedVirtualAddressing: Feature = "extendedVirtualAddressing" static let increasedDebuggingMemoryLimit: Feature = "increasedDebuggingMemoryLimit" + static let healthKit: Feature = "HK421J6T7P" static let freeFeatures: Set = [ .appGroups, - .interAppAudio + .interAppAudio, + .healthKit ] static let paidFeatures: Set = [ @@ -101,6 +104,7 @@ public extension Feature { .wirelessAccessoryConfiguration, .increasedMemoryLimit, .extendedVirtualAddressing, - .increasedDebuggingMemoryLimit + .increasedDebuggingMemoryLimit, + .healthKit ] }