diff --git a/Packages/AppAccount/Sources/AppAccount/AppAccount.swift b/Packages/AppAccount/Sources/AppAccount/AppAccount.swift index 8f01d8e2..f4c4bf5e 100644 --- a/Packages/AppAccount/Sources/AppAccount/AppAccount.swift +++ b/Packages/AppAccount/Sources/AppAccount/AppAccount.swift @@ -7,7 +7,7 @@ import SwiftUI extension AppAccount { private static var keychain: KeychainSwift { let keychain = KeychainSwift() - #if !DEBUG + #if !DEBUG && !targetEnvironment(simulator) keychain.accessGroup = AppInfo.keychainGroup #endif return keychain diff --git a/Packages/Env/Sources/Env/PushNotificationsService.swift b/Packages/Env/Sources/Env/PushNotificationsService.swift index c6b5c2a8..72a2082e 100644 --- a/Packages/Env/Sources/Env/PushNotificationsService.swift +++ b/Packages/Env/Sources/Env/PushNotificationsService.swift @@ -34,7 +34,7 @@ public class PushNotificationsService: ObservableObject { private var keychain: KeychainSwift { let keychain = KeychainSwift() - #if !DEBUG + #if !DEBUG && !targetEnvironment(simulator) keychain.accessGroup = AppInfo.keychainGroup #endif return keychain