From 53370667c29c37fd87aa7e2a42d9ee81e9edca4a Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Tue, 17 Nov 2026 10:44:59 -0500 Subject: [PATCH] fix(mobile): provision Catalyst app with a keychain access group Co-Authored-By: Claude Opus 5.5 --- apps/mobile/plugins/with-mac-catalyst.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/mobile/plugins/with-mac-catalyst.js b/apps/mobile/plugins/with-mac-catalyst.js index 0057a43..ae27e87 100644 --- a/apps/mobile/plugins/with-mac-catalyst.js +++ b/apps/mobile/plugins/with-mac-catalyst.js @@ -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)/