Closed mirekp closed 5 years ago
Also, I found the following warning as well. Did you encounter this, @mirekp?
The warning that kCFBooleanTrue is implicitly coerced to Any is found on line 118 of KeychainWrapper.swift.
Considering the location and its relative safety, I propose to update it by force-unwrapping it.
var keychainQueryDictionary: [String:Any] = [
SecClass: kSecClassGenericPassword,
SecAttrService: serviceName,
SecReturnAttributes: kCFBooleanTrue!, // Force unwrap.
SecMatchLimit: kSecMatchLimitAll,
]
@jrendel
This and #121 are both small but important changes, @jrendel. Are you able to merge them? If not, would it be worthwhile transferring ownership of the project to someone else so it can be maintained? SwiftKeychainWrapper is a really useful project and I know it's popular, so it would be great to see it up to date and warning-free for Swift 5.
Sorry guys, will try to do better at keeping this up!
Removed compilation warning related to incorrectly used @available attribute shown when compiling in Xcode 10.2