Disable keychain group on simulator

This commit is contained in:
Thomas Ricouard 2023-01-27 12:06:44 +01:00
parent 7f7a967d87
commit 0f4fccf1a5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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