fix: add HealthKit entitlement and regenerate Xcode project to resolve NSInvalidArgumentException
Some checks failed
CI / TypeScript (pull_request) Failing after 5s
CI / ESLint (pull_request) Failing after 4s
CI / Tests (pull_request) Failing after 5s
CI / Build Check (pull_request) Has been skipped
CI / Admin Web Tests (pull_request) Successful in 2m8s
CI / Deploy Edge Functions (pull_request) Has been skipped

The iOS app target was missing the com.apple.developer.healthkit entitlement
and the Xcode project was out of sync with project.yml, causing a crash when
HealthKitService requested write authorization for active energy, workouts, and
heart rate types.
This commit is contained in:
Millian Lamiaux
2026-04-23 22:34:54 +02:00
parent cf096f2068
commit 9943dce82d
5 changed files with 173 additions and 7 deletions

View File

@@ -189,7 +189,7 @@
D593D23B6A2F633DFA166D91 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
D66750D77B59FCF4F321B36E /* GlobalStatsCard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlobalStatsCard.swift; sourceTree = "<group>"; };
D8425C668A3901B0F12DBFCD /* WatchConnectivityTypes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = WatchConnectivityTypes.swift; path = ../../TabataGo/Services/WatchConnectivityTypes.swift; sourceTree = "<group>"; };
D8A69F6B8DC5329436762B50 /* TabataGo.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = TabataGo.app; sourceTree = BUILT_PRODUCTS_DIR; };
D8A69F6B8DC5329436762B50 /* TabataGo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TabataGo.app; sourceTree = BUILT_PRODUCTS_DIR; };
D983B6DEDE62A8F0E9E09E66 /* TabataGoWatch.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = TabataGoWatch.entitlements; sourceTree = "<group>"; };
DA21206AD91A5F95926EEA05 /* PaywallView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaywallView.swift; sourceTree = "<group>"; };
DBC464C4D17B88E57FB5477C /* WatchPlayerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WatchPlayerView.swift; sourceTree = "<group>"; };
@@ -224,7 +224,6 @@
25FD149C9626FEC155E8C72E /* PhoneConnectivityManager.swift */,
A84A0F7F17713D5D0A679122 /* PurchaseService.swift */,
4EDF0ED76A8476BF1F80EF8C /* SupabaseService.swift */,
D8425C668A3901B0F12DBFCD /* WatchConnectivityTypes.swift */,
);
path = Services;
sourceTree = "<group>";
@@ -880,6 +879,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = TabataGo/Resources/TabataGo.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
DEVELOPMENT_TEAM = 2MJF39L8VY;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = TabataGo/Resources/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 26.0;
@@ -982,6 +982,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = TabataGo/Resources/TabataGo.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
DEVELOPMENT_TEAM = 2MJF39L8VY;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = TabataGo/Resources/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 26.0;