Subject: Sign in with Apple Authentication Errors – NSOSStatusErrorDomain Code -54 & AKAuthenticationError Code -7034
Hello everyone,
I’m seeing multiple errors when trying to use Sign in with Apple in my Flutter iOS app. It used to work fine, but for the past few days I can’t get it to succeed. Here’s the full log at launch:
Could not create a sandbox extension for '/var/containers/Bundle/Application/B98935F2-62E9-44AA-8CFB-FC5D404DE0D2/Runner.app'
D/Swift: [AWESOME NOTIFICATIONS] Awesome Notifications service initialized (AwesomeNotificationsPlugin:1030)
D/Swift: [AWESOME NOTIFICATIONS] Awesome notifications 4504669392 attached to app instance (AwesomeNotifications:103)
flutter: FetchSystemSettingsSuccess
flutter: unhandled element <metadata/>; Picture key: Svg loader
flutter: unhandled element <defs/>; Picture key: Svg loader
flutter: unhandled element <sodipodi:namedview/>; Picture key: Svg loader
Authorization failed: Error Domain=AKAuthenticationError Code=-7034 "(null)" UserInfo={AKClientBundleID=com.kot.now}
D/Swift: [AWESOME NOTIFICATIONS] last displayed date registered: 2025-06-25 07:24:02 GMT (DefaultsManager:99)
LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=72, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
Attempt to map database failed: permission was denied. This attempt will not be retried.
Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=72, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
Failed to get application extension record: Error Domain=NSOSStatusErrorDomain Code=-54 "(null)"
ASAuthorizationController credential request failed with error: Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1000 "(null)"
Context:
- Platform: Flutter (latest stable channel), using the
awesome_notificationsplugin. - Xcode: 15.4 (Build 15E144)
- iOS Deployment Target: 14.0+
- Bundle Identifier:
com.kot.now - Sign in with Apple: Enabled under Xcode Capabilities, configured in the App ID and on App Store Connect.
- Developer Account: Correctly signed into Xcode; provisioning profiles and certificates are up to date.
What I’ve tried already:
- Clean build (
flutter clean, deleting DerivedData). - Regenerated certificates and provisioning profiles (App ID, Keys, etc.).
- Verified Bundle ID and Team ID in both Xcode and App Store Connect.
- Tested on both simulator and physical device (same errors).
- Updated Flutter dependencies and CocoaPods.
- Uninstalled and reinstalled the app on device.
The AKAuthenticationError Code=-7034 seems to point to an internal authorization issue, and the NSOSStatusErrorDomain Code=-54 (“permission denied”) appears related to LaunchServices or sandboxing, but I can’t find a clear link to Sign in with Apple.
Questions:
- Has anyone encountered these two error codes together?
- Are there specific sandbox, entitlements, or bundle-suffix settings to check for Sign in with Apple in a Flutter iOS app?
- Any tips for resolving the “process may not map database” sandbox error?
Thanks in advance for your help! Let me know if you need additional details (entitlements file, Info.plist, etc.).