SimpleKeychain: Does not work in iOS13.4 simulator

Description

When using the iOS13.4 simulator, SimpleKeychain reports that it saved successfully. When I try to retrieve the saved object, I get empty data.

Reproduction

  • Add this to a fresh Xcode project , e.g. in the AppDelegate.
let keychain = A0SimpleKeychain()
keychain.setString("foo", forKey: "f")
let string = keychain.string(forKey: "f")!
assert(string == "foo")
  • Run on iOS 12.4 sim, no assert.
  • Run on iOS 13.4 sim, assertion failed.

Environment

  • Version of this library used: 0.11.0
  • Version of the platform or framework used, if applicable: iOS 13.4 simulator

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 5
  • Comments: 19 (10 by maintainers)

Most upvoted comments

@sam-w and all, the workaround is out in the 0.11.1 release. Thanks for the report and the input.

https://github.com/evgenyneu/keychain-swift does work on iOS 13.4 simulator, so might provide a point of comparison.

On iOS 13.3 simulator it works as well. So just the newest iOS simulator seems to be affected.