Ok, I think I found the answer. Hope this helps you. When you get
Error Domain=com.apple.LocalAuthentication Code=-8 "Biometry is locked out." UserInfo={NSLocalizedDescription=Biometry is locked out.}
iOS 10 blocks access to TouchID, it can be unlocked by providing an access code on the iOS unlock screen, accessing the iOS TouchID settings and providing an access code, or manually launching an access code screen from the application. You can open the access code screen using the following snippet.
let context = LAContext()
context.evaluatePolicy(LAPolicy.DeviceOwnerAuthentication,
localizedReason: reason,
reply: { (success, error) in
})
Of course, you can first check to see if you can evaluate this policy.
So, at the end, when the user successfully enters the password, the biometrics will be unlocked. Prior to iOS 10, this was done automatically by the operating system.
source
share