为了使用调试令牌,我正在密切关注应用程序检查文档,但是,我没有看到它在控制台中注销,而是看到了以下错误(当从xcode在调试模拟器中运行时)
编辑:测试飞行/真实设备构建中,一切都按预期工作。
编辑2:创建相关的github问题
[Firebase/AppCheck][I-FAA004002] Failed to exchange debug token to app check token: Error Domain=com.firebase.appCheck Code=0 "The server responded with an error:
- URL: https://firebaseappcheck.googleapis.com/v1beta/projects/[my-project-id]/apps/1:[sensitive-data]:ios:[sensitive-data]:exchangeDebugToken
- HTTP status code: 403
- Response body: {
"error": {
"code": 403,
"message": "App attestation failed.",
"status": "PERMISSION_DENIED"
}
}到目前为止,我已经实现了以下步骤,但没有幸运的

FIRAppCheckDebugProviderFactory: #if DEBUG
FIRAppCheckDebugProviderFactory *providerFactory = [[FIRAppCheckDebugProviderFactory alloc] init];
[FIRAppCheck setAppCheckProviderFactory:providerFactory];
#endif
[FIRApp configure];-FIRDebugEnabled添加到架构中的调试运行启动参数中

发布于 2022-04-16 12:38:00
这是通过文档https://github.com/firebase/firebase-ios-sdk/issues/9547#issuecomment-1097424478之外的上游解决的
总之
发布于 2022-04-06 22:12:17
还必须启用“管理调试令牌”,此链接和图片可以帮助您:
https://firebase.google.com/docs/app-check/ios/debug-provider?authuser=0&hl=en


https://stackoverflow.com/questions/71677158
复制相似问题