         keychainQueryDictionary[SecReturnData] = kCFBooleanTrue
         
         // Search
-        let status = withUnsafeMutablePointer(to: &result) {
-            SecItemCopyMatching(keychainQueryDictionary as CFDictionary, UnsafeMutablePointer($0))
-        }
+        var result: AnyObject?
+        let status = SecItemCopyMatching(keychainQueryDictionary as CFDictionary, &result)
         
         return status == noErr ? result as? Data : nil
     }

        keychainQueryDictionary[SecReturnAttributes] = kCFBooleanTrue

        // Search
        let status = withUnsafeMutablePointer(to: &result) {
            SecItemCopyMatching(keychainQueryDictionary as CFDictionary, UnsafeMutablePointer($0))
        }

        if status == noErr {
            if let resultsDictionary = result as? [String:AnyObject], let accessibilityAttrValue = resultsDictionary[SecAttrAccessible] as? String {
                return KeychainItemAccessibility.accessibilityForAttributeValue(accessibilityAttrValue as CFString)
            }
        }
        
        return nil
    }

    /// Get the keys of all keychain entries matching the current ServiceName and AccessGroup if one is set.

        }

        var result: AnyObject?
        let status = SecItemCopyMatching(keychainQueryDictionary as CFDictionary, &result)

        guard status == errSecSuccess else { return [] }

