React native 世博会反应本地苹果登录在试飞中崩溃

React native 世博会反应本地苹果登录在试飞中崩溃,react-native,expo,testflight,apple-sign-in,React Native,Expo,Testflight,Apple Sign In,我正在与expo、react native和apple登录一起工作。当我在模拟器中使用苹果登录世博会时,一切都正常 当我将应用程序推到TestFlight并尝试登录苹果时,应用程序立即崩溃。不会抛出错误消息或警告,它只会关闭应用程序。因此,我不知道为什么会发生这种情况,也不知道如何获取崩溃日志 还有其他人经历过吗 世博会——版本:3.21.5 sdk-37.0.1 <AppleAuthentication.AppleAuthenticationButton buttonType={A

我正在与expo、react native和apple登录一起工作。当我在模拟器中使用苹果登录世博会时,一切都正常

当我将应用程序推到TestFlight并尝试登录苹果时,应用程序立即崩溃。不会抛出错误消息或警告,它只会关闭应用程序。因此,我不知道为什么会发生这种情况,也不知道如何获取崩溃日志

还有其他人经历过吗

世博会——版本:3.21.5 sdk-37.0.1

 <AppleAuthentication.AppleAuthenticationButton
  buttonType={AppleAuthentication.AppleAuthenticationButtonType.SIGN_IN}
  buttonStyle={AppleAuthentication.AppleAuthenticationButtonStyle.BLACK}
  cornerRadius={5}
  style={{
    width: Constant.width * 0.92,
    height: 44,
  }}
  onPress={async () => {
    try {
      setAppleLoggingIn(true);
      const credential = await AppleAuthentication.signInAsync({
        requestedScopes: [
          AppleAuthentication.AppleAuthenticationScope.FULL_NAME,
          AppleAuthentication.AppleAuthenticationScope.EMAIL,
        ],
      });
      // signed in
      onSignIn(credential);
      setAppleLoggingIn(false);
    } catch (e) {
      if (e.code === "ERR_CANCELED") {
        // handle that the user canceled the sign-in flow
        setAppleLoggingIn(false);
        return {cancelled: true};
      } else {
        // handle other errors
        setAppleLoggingIn(false);
        return {error: true};
      }
    }
  }}
/>
{
试一试{
SetAppleLogginin(真);
const credential=wait AppleAuthentication.signInAsync({
请求的作用域:[
AppleAuthentication.AppleAuthenticationScope.FULL\u名称,
AppleAuthentication.AppleAuthenticationScope.EMAIL,
],
});
//签到
onSignIn(凭证);
SetAppleLogginin(假);
}捕获(e){
如果(例如代码==“错误已取消”){
//用户取消登录流的句柄
SetAppleLogginin(假);
返回{已取消:true};
}否则{
//处理其他错误
SetAppleLogginin(假);
返回{error:true};
}
}
}}
/>

发现我使用了错误的服务ID。当你推到TestFlight时,你必须将此从
主机.exp.Exponent
更新到你的捆绑包ID。

发现我使用了错误的服务ID。当你推到TestFlight时,你必须将此从
主机.exp.Exponent
更新到你的捆绑包ID是