ios - 罕见的使用 Apple 登录崩溃
问题描述
这是几个月来一直存在的问题。我们无法重新创建它。它以相同的方式影响多个应用程序。对于我们来说,它与在 Apple 论坛上报告它的其他用户一样崩溃。还没有建议。
let appleIDProvider = ASAuthorizationAppleIDProvider()
let request = appleIDProvider.createRequest()
request.requestedScopes = [.fullName, .email] //this line crashes
let authorizationController = ASAuthorizationController(authorizationRequests: [request])
authorizationController.delegate = self
authorizationController.performRequests()
这是完整的崩溃:
Crashed: com.apple.main-thread
0 Curio 0x100ea895c AuthCoordinator.didTappAuthWithApple() + 138 (AuthCoordinator.swift:138)
1 Curio 0x100d0c37c @objc AuthViewController.appleTapped() (<compiler-generated>)
2 UIKitCore 0x1bd3a6300 -[UIApplication sendAction:to:from:forEvent:]
3 Sentry 0x1028f5dac (Missing)
4 UIKitCore 0x1bce4f424 -[UIControl sendAction:to:forEvent:]
5 UIKitCore 0x1bce4f744 -[UIControl _sendActionsForEvents:withEvent:]
6 UIKitCore 0x1bce4e7b0 -[UIControl touchesEnded:withEvent:]
7 UIKitCore 0x1bd3dd5c4 -[UIWindow _sendTouchesForEvent:]
8 UIKitCore 0x1bd3de7ec -[UIWindow sendEvent:]
9 UIKitCore 0x1bd3be85c -[UIApplication sendEvent:]
10 Instabug 0x10204c1cc (Missing)
11 UIKitCore 0x1bd4849d4 __dispatchPreprocessedEventFromEventQueue
12 UIKitCore 0x1bd487100 __handleEventQueueInternal
13 UIKitCore 0x1bd480330 __handleHIDEventFetcherDrain
14 CoreFoundation 0x190b48f1c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
15 CoreFoundation 0x190b48e9c __CFRunLoopDoSource0
16 CoreFoundation 0x190b48784 __CFRunLoopDoSources0
17 CoreFoundation 0x190b436c0 __CFRunLoopRun
18 CoreFoundation 0x190b42fb4 CFRunLoopRunSpecific
19 GraphicsServices 0x192d4479c GSEventRunModal
20 UIKitCore 0x1bd3a4c38 UIApplicationMain
21 Curio 0x100ccd3d4 main + 22 (AppDelegate.swift:22)
22 libdyld.dylib 0x1906068e0 start
解决方案
推荐阅读
- sql - SQL 中的硬编码值(复杂查询)
- c - 调用函数以将C中的数字加一
- python - python AttributeError:'DataFrame'对象没有属性'Date'
- java - 外部 Kafka 密钥库和信任库的路径无效
- angular - Angular 9 DI 问题
- javascript - 从图像阵列创建视频的最快方法
- python - 在 PySimpleGUI 中检测 FileBrowse 的取消事件
- mysql - 体育比赛 MySQL 查询以特定顺序加入比赛和球队
- microsoft-graph-api - 不受支持的媒体类型 - Graph Explorer 中的 POST 请求中出现 415 错误
- flutter - Dart 函数语法