简体   繁体   English

谷歌登录 iOS 崩溃?

[英]Google Sign-In for iOS crash?

In an iOS project that uses Google Sign-In SDK (v5.0.2, added manually to the project, as well as GTM and Firebase), we have a crash that we could reproduce several times with a specific account on a specific device, when trying to sign in with a Google account.在使用 Google 登录 SDK(v5.0.2,手动添加到项目中,以及 GTM 和 Firebase)的 iOS 项目中,我们有一个崩溃,我们可以在特定设备上使用特定帐户多次重现,当尝试使用 Google 帐户登录。

The crash is:崩溃是:

** Assertion failure in +[UIAlertAction _actionWithTitle:descriptiveText:image:style:handler:shouldDismissHandler:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit-3901.4.5/UIAlertAction.m:42

The stack trace says the crash appears in堆栈跟踪说崩溃出现在

+[UIAlertAction actionWithTitle:style:handler:]
-[GIDEMMErrorHandler passcodeRequiredAlertWithCompletion:] + 556
-[GIDEMMErrorHandler handleErrorFromResponse:completion:]_block_invoke + 724

Poking with the debugger, it looks like UIAlertAction is passed a nil title, which causes an assertion failure.用调试器戳,看起来UIAlertAction传递了一个nil标题,这导致断言失败。

The OS of the device is iOS 13.3.1.该设备的操作系统为 iOS 13.3.1。

I can't find an official way to report a bug in the Google Sign-In SDK, the Google issue tracker seems to be restricted to people with specific permissions, and they otherwise point to a forum that doesn't exist anymore, or to Stack Overflow...我找不到官方方法来报告 Google 登录 SDK 中的错误,Google 问题跟踪器似乎仅限于具有特定权限的人,否则他们会指向一个不再存在的论坛,或者堆栈溢出...

The problem is that the resource bundle isn't being correctly linked in your project so the SDK gets a nil string for the action dialog which triggers the crash.问题是资源包没有在您的项目中正确链接,因此 SDK 为触发崩溃的操作对话框获取nil字符串。

Until Google will gracefully fix it by providing a fallback string you can verify how you are linking the GoogleSignIn.bundle in your project在谷歌通过提供后备字符串优雅地修复它之前,您可以验证您如何在项目中链接GoogleSignIn.bundle

截屏

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

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