Bug: Sec-Framework gibt -34018 (errSecMissingEntitlement) beim ersten Keychain-Write — auf iPhone UND Mac, in werdrobe + nutriphi + vermutlich allen 12 Apps mit der heutigen Migration. Root-Cause: Apple's `Security.framework` macht einen exakten String-Match zwischen `kSecAttrAccessGroup` (was Swift übergibt) und dem `keychain-access-groups`-Entitlement des Bundles (das `$(AppIdentifierPrefix)` zur Build-Zeit auf den Team-Prefix expandiert). - Bundle-Entitlement: "QP3GLU8PH3.ev.mana.session" (mit Prefix) - Swift-Code: "ev.mana.session" (ohne Prefix) - → no match → -34018 Vor meiner Migration hatten die Apps explizit "QP3GLU8PH3. ev.mana.<app>" als String (mit Prefix), beobachtbar im alten herbatrium/wordeck/nutriphi-AppConfig. Mein Migrations-Skript hat das Prefix wegrationalisiert ohne zu prüfen. Fix: `ManaSharedKeychainGroup` = "QP3GLU8PH3.ev.mana.session" hardcoded. Plus `ManaSharedKeychainGroupSuffix` = "ev.mana.session" für Konstantanbedarf in Entitlement-Files (wo $(AppIdentifierPrefix) zur Build-Zeit vorgestellt wird). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| AuthClient+Account.swift | ||
| AuthClient.swift | ||
| AuthError.swift | ||
| JWT.swift | ||
| KeychainStore.swift | ||
| ManaAppConfig.swift | ||
| SharedKeychainGroup.swift | ||