In my application, I have a Keychain access class that worked in Xcode 6, but now in Xcode 6.1 I get some errors, this is the first: Type 'CFStringRef' does not conform to the "Hashable" protocol:
private class func updateData(value: NSData, forKey keyName: String) -> Bool { let keychainQueryDictionary: NSMutableDictionary = self.setupKeychainQueryDictionaryForKey(keyName) let updateDictionary = [kSecValueData:value] //HERE IS THE ERROR // Update let status: OSStatus = SecItemUpdate(keychainQueryDictionary, updateDictionary) if status == errSecSuccess { return true } else { return false } }
I also get an error similar to the first, but this: Type 'CFStringRef' does not comply with the 'NSCopying' protocol, here is the part where I get this error:
private class func setupKeychainQueryDictionaryForKey(keyName: String) -> NSMutableDictionary {
Can someone tell me how to solve this error, please.
source share