ios – 使用Dictation时基于WKWebView的应用程序崩溃

ios – 使用Dictation时基于WKWebView的应用程序崩溃,第1张

概述我在这里试图理解为什么我的应用程序(基于WKWebView的应用程序)在我按下听写按钮时崩溃了. Thread : Crashed: com.apple.main-thread0 libobjc.A.dylib 0x19a55a5f4 _class_getNonMetaClass + 2121 libobjc.A.dylib 0x 我在这里试图理解为什么我的应用程序(基于WKWebVIEw的应用程序)在我按下听写按钮时崩溃了.

Thread : Crashed: com.apple.main-thread0  libobjc.A.dylib                0x19a55a5f4 _class_getNonMetaClass + 2121  libobjc.A.dylib                0x19a556ccc _class_resolveMethod + 1122  libobjc.A.dylib                0x19a55f9a8 lookUpImpOrForward + 3603  libobjc.A.dylib                0x19a55f80c lookUpImpOrNil + 124  libobjc.A.dylib                0x19a557048 class_respondsToSelector + 405  Foundation                     0x1867fb004 +[NSBundle bundleForClass:] + 806  UIKit                          0x18b1b038c -[UIVIEw(UIDeBUGging) description] + 2127  Foundation                     0x1867f698c _NSDescriptionWithLocaleFunc + 1088  CoreFoundation                 0x18596f994 __CFStringAppendFormatCore + 82729  CoreFoundation                 0x18596d90c _CFStringCreateWithFormatandArgumentsAux2 + 24410 Foundation                     0x1867f68e0 -[NSPlaceholderString initWithFormat:locale:arguments:] + 16811 Foundation                     0x1867f67b0 +[Nsstring stringWithFormat:] + 6812 UIKit                          0x18b6a47f8 -[UIDictationController insertSerializedDictationResult:withCorrectionIDentifIEr:] + 14413 UIKit                          0x18b6a4e44 __98-[UIDictationController finishDictationRecognitionWithPhrases:languageModel:correctionIDentifIEr:]_block_invoke + 42014 UIKit                          0x18b6a3e60 -[UIDictationController performIgnoringdocumentChanges:] + 4815 UIKit                          0x18b6a20a8 -[UIDictationController _runFinalizeOperation] + 4816 UIKit                          0x18b6a23a0 -[UIDictationController setState:] + 50417 UIKit                          0x18b6a4bd0 -[UIDictationController finishDictationRecognitionWithPhrases:languageModel:correctionIDentifIEr:] + 55218 UIKit                          0x18b6a50c0 -[UIDictationController dictationConnection:dIDRecognizePhrases:languageModel:correctionIDentifIEr:] + 20419 AssistantServices              0x18cd81bd4 -[AFDictationConnection _tellSpeechDelegateDIDRecognizeSpeechPhrases:languageModel:correctionIDentifIEr:] + 18820 AssistantServices              0x18cd841a4 __101-[AFDictationConnectionServiceDelegate speechDIDRecognizePhrases:usingSpeechModel:correctionContext:]_block_invoke + 7621 libdispatch.dylib              0x19ad756e8 _dispatch_call_block_and_release + 2422 libdispatch.dylib              0x19ad756a8 _dispatch_clIEnt_callout + 1623 libdispatch.dylib              0x19ad7adb0 _dispatch_main_queue_callback_4CF + 184424 CoreFoundation                 0x18595c1f8 __CFRUNLOOP_IS_SERviciNG_THE_MAIN_disPATCH_QUEUE__ + 1225 CoreFoundation                 0x18595a060 __CFRunLoopRun + 162826 CoreFoundation                 0x185888ca0 CFRunLoopRunspecific + 38427 GraphiCSServices               0x190ac4088 GSEventRunModal + 18028 UIKit                          0x18afa0ffc UIApplicationMain + 20429 ChatApp                        0x10004f2a0 main (AppDelegate.swift:16)30 libdyld.dylib                  0x19ada68b8 start + 4

任何的想法 ?有人遇到同样的问题吗?你有CrashLytics日志上层.

解决方法 迟到了这个派对,但是我跟踪了使用方法 outlined in this answer弄乱WKWebVIEw的输入附件时发生的类似崩溃.保留输入附件可以防止在听写期间发生崩溃.

如果是这种情况,你会看到I’ve outlined a workaround here.

总结

以上是内存溢出为你收集整理的ios – 使用Dictation时基于WKWebView的应用程序崩溃全部内容,希望文章能够帮你解决ios – 使用Dictation时基于WKWebView的应用程序崩溃所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/web/1003680.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存