简体   繁体   English

模拟器中没有Touch ID / Face ID提示

[英]No Touch ID / Face ID prompt in simulator

I am using the KeychainAccess keychain wrapper for Swift to save and read to the keychain using biometrics. 我正在使用Swift的KeychainAccess钥匙串包装器来保存并使用生物识别技术读取钥匙串。

When running in the simulator (Xcode 10.1, iOS 12.1) the Touch ID / Face ID prompt/dialogue is not shown. 在模拟器(Xcode 10.1,iOS 12.1)中运行时,不会显示Touch ID / Face ID提示/对话框。 The value is written to and read from keychain without the user being asked to confirm with biometrics. 该值将写入钥匙串并从钥匙串读取,而不会要求用户使用生物识别技术进行确认。 When I run on a device the prompt comes as expected. 当我在设备上运行时,提示按预期进行。

It would seem that the simulator is always in a state where the biometrics is already approved, even though I had not activated the matching touch/face. 似乎模拟器始终处于生物识别已经被批准的状态,即使我没有激活匹配的触摸/面部。

Is this a bug or (or perhaps a feature) in the simulator or the SDK? 这是模拟器或SDK中的错误或(或可能是功能)吗? I have an older Objective-C project that uses Apple's old KeychainWrapper, and there I get the prompt in the same simulator. 我有一个较旧的Objective-C项目,使用Apple的旧KeychainWrapper,我在同一个模拟器中得到提示。

You can use the following option to trigger Enrolled, Matching Touch/Face and Non-Matching Touch/Face 您可以使用以下选项触发已注册,匹配的触摸/面部和不匹配的触摸/面部

Simulator >> Hardware > Touch ID
Simulator >> Hardware > Face ID

在此输入图像描述 在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM