You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing unpredictable behavior with APCKeychain, where APCKeychainStore.stringForKey incorrectly returns an empty value about 1/3 of the time. Where APCKeychainStore incorrectly returns empty values, I can force-close the app and see the correct values returned on subsequent queries.
I'm getting and setting keychain values via Swift, like this:
var email : String {
get {
if let value = APCKeychainStore.stringForKey(kEmailPropertyName) {
return value
}
return ""
}
set {
APCKeychainStore.setString(newValue, forKey: kEmailPropertyName)
}
}
var password : String {
get {
if let value = APCKeychainStore.stringForKey(kPasswordPropertyName) {
return value
}
return ""
}
set {
APCKeychainStore.setString(newValue, forKey: kPasswordPropertyName)
}
}
I'm seeing unpredictable behavior with APCKeychain, where APCKeychainStore.stringForKey incorrectly returns an empty value about 1/3 of the time. Where APCKeychainStore incorrectly returns empty values, I can force-close the app and see the correct values returned on subsequent queries.
I'm getting and setting keychain values via Swift, like this: