React native Expo React Native-FaceID在Expo客户端中不可用

React native Expo React Native-FaceID在Expo客户端中不可用,react-native,expo,face-id,React Native,Expo,Face Id,我正在尝试在我的React原生项目中实现Face ID ... import * as LocalAuthentication from 'expo-local-authentication'; ... componentDidMount = async () => { const hasAuth = await LocalAuthentication.hasHardwareAsync(); if(hasAuth) LocalAuthentication.au

我正在尝试在我的React原生项目中实现Face ID

...
import * as LocalAuthentication from 'expo-local-authentication';
...

componentDidMount = async () => {
    const hasAuth = await LocalAuthentication.hasHardwareAsync();
    if(hasAuth)
      LocalAuthentication.authenticateAsync();
}
...
当我使用手机在expo
expo start
中运行它时,它会打开iPhone页面,询问密码(而不是faceID)。输入密码后,它返回下面的警告消息,并且面部ID不起作用

FaceID is not available in Expo Client. You can use it in a standalone Expo app by providing `NSFaceIDUsageDescription`
我还将NSFaceIDUsageDescription添加到了我的app.json中

"infoPlist": {
        "NSFaceIDUsageDescription": "This app will optionally use Face ID or Touch ID to save login"
      }

Expo本地身份验证FaceID在Expo客户端应用程序上不起作用,但您可以测试它为IOS构建存档IPA<代码>世博会版本:ios-t存档。它将为IOS创建一个构建,然后您可以对其进行测试