fix(mobile): provision Catalyst app with a keychain access group

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
joshuafhigginsandClaude Opus 5.5 committed 2026-11-17 10:44:59 -05:00 Verified
1 parent aebe5e7007
commit 53370667c2
1 file changed
+10
+10
View File
@@ -1,4 +1,5 @@
const {
withEntitlementsPlist,
withPodfile,
withPodfileProperties,
withXcodeProject,
@@ -26,6 +27,15 @@ module.exports = (config) => {
return config
})
// macOS rejects expo-secure-store's Keychain writes without an access group,
// and requesting one makes Xcode provision the Mac app with a profile.
config = withEntitlementsPlist(config, (config) => {
config.modResults["keychain-access-groups"] = [
`$(AppIdentifierPrefix)${config.ios.bundleIdentifier}`,
]
return config
})
config = withPodfile(config, (config) => {
const flag = /:mac_catalyst_enabled\s*=>\s*(?:false|true)/
const postInstall = /(react_native_post_install\([\s\S]*?\n {4}\)\n)/