最近在Crashlytics报告中,我们发现了以下错误:
致命异常:NSInvalidArgumentException ***-[__ NSDictionaryM setObject:forKey:]:对象不能为零(键:UIAutofillContextDelegateKey)
我可以从Google获得的唯一结果是有关键盘设置的链接: https://forums.developer.apple.com/thread/99814
这似乎与从iOS 11.3开始的键盘设置有关。有没有人遇到类似的情况,并且知道这是什么根本原因?以下是堆栈跟踪的一部分:
3 CoreFoundation -[__ NSDictionaryM setObject:forKey:]
4个UIKit -[UIKeyboardImpl needAutofillCandidate:]
5个UIKit -[UIKeyboardImpl setDelegate:force:]
6个UIKit -[UIKeyboardAutomatic将恢复:]
7 CoreFoundation _CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER _
8 CoreFoundation _CFXRegistrationPost 9 CoreFoundation ___ CFXNotificationPost_block_invoke
10个CoreFoundation -[_ CFXNotificationRegistrar find:object:observer:enumerator:]
11 CoreFoundation _CFXNotificationPost
12基础 -[NSNotificationCenter postNotificationName:object:userInfo:]
13个UIKit -[UIApplication _sendWillEnterForegroundCallbacks]