Håvard Fossli
Håvard Fossli
Also, make sure you delete and recreate the keys.
And try with these access flags ``` let publicAccessControl = EllipticCurveKeyPair.AccessControl(protection: kSecAttrAccessibleAlwaysThisDeviceOnly, flags: []) let privateAccessControl = EllipticCurveKeyPair.AccessControl(protection: kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, flags: { return EllipticCurveKeyPair.Device.hasSecureEnclave ? [.userPresence, .privateKeyUsage] : [.userPresence] }()) ```
``` do { try KeyPair.manager.deleteKeypair() } catch { ... } ```
Or just delete the app before you install
I will try to recreate the bug on my end. I need xcode version, mac version, simulator version etc.
Xcode build version and swift version would also be useful.
Ah! That makes sense! Maybe a better error message could be nice in that case. Keeping it open until I fix that. Thanks!
Not sure. I'll keep this in mind next time I make a change. Please fork in the meantime.
A preview can be seen here https://github.com/hfossli/Express
Here's a comparison (for sake of history):  --- 