From 0f4fccf1a51d58e116c1e54cd3ae864f1b2a7ff7 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Fri, 27 Jan 2023 12:06:44 +0100 Subject: [PATCH] Disable keychain group on simulator --- Packages/AppAccount/Sources/AppAccount/AppAccount.swift | 2 +- Packages/Env/Sources/Env/PushNotificationsService.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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