gpt4 book ai didi

ios - 调用 resignFirstResponder 时,什么会导致间歇性 NSInternalInconsistencyException?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:03:04 25 4
gpt4 key购买 nike

感谢 Crashlytics,我收到了有关我的应用程序在调用 resignFirstResponder 时崩溃的报告。崩溃是由于 NSInternalInconsistencyException 和消息“我们从未正确设置以在该文档中流式传输”。崩溃似乎只发生在 iOS7 上,在 iPhone 和 iPad 上。该应用程序不是基于文档的,所以我觉得消息中提到的文档令人困惑。到目前为止,我一直无法在设备或模拟器中重现该问题。不幸的是,谷歌搜索错误消息没有结果。崩溃总是发生在主线程上,堆栈总是显示为:

0    CoreFoundation  __exceptionPreprocess + 130
1 libobjc.A.dylib objc_exception_throw + 38
2 CoreFoundation +[NSException raise:format:]
3 Foundation -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 90
4 UIKit -[UIDictationTestOps willEndEditingInInputDelegate:] + 138
5 UIKit +[UIDictationController keyboardWillChangeFromDelegate:toDelegate:] + 136
6 UIKit -[UIKeyboardImpl setDelegate:force:] + 206
7 UIKit -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 784
8 UIKit -[UIResponder _finishResignFirstResponder] + 136
9 UIKit -[UIResponder resignFirstResponder] + 250
...

可能导致问题的原因是什么,探索重现问题的好途径是什么?

最佳答案

当使用 UIKeyInput 进行文本输入时,每次点击听写按钮然后关闭键盘时都会出现此错误。不过,仍在寻找修复它的方法(或仅禁用听写的方法)。

关于ios - 调用 resignFirstResponder 时,什么会导致间歇性 NSInternalInconsistencyException?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19010050/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com