 
             kSecMatchLimit as String: kSecMatchLimitAll
         ]
-
-        #if TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
-        if let accessGroup = self.storageParams.accessGroup {
-            query[kSecAttrAccessGroup] = accessGroup
-        }
-        #endif
     #elseif os(macOS)
         let query: [String: Any] = [
             kSecClass as String: kSecClassGenericPassword,

            kSecReturnData as String: true,
            kSecReturnAttributes as String: true
        ]

        #if TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
        if let accessGroup = self.storageParams.accessGroup {
            query[kSecAttrAccessGroup] = accessGroup
        }
        #endif
    #elseif os(macOS)
        let query: [String: Any] = [
            kSecClass as String: kSecClassGenericPassword,

            kSecAttrApplicationLabel as String: nameData,
            kSecAttrApplicationTag as String: tagData
        ]
    #elseif os(macOS)
        let query: [String: Any] = [
            kSecClass as String: kSecClassGenericPassword,
