无法找到崩溃原因

时间:2020-10-06 09:19:08

标签: ios swift crash

帮助我了解此崩溃,无法找到此崩溃的起源 该崩溃日志是从appstore获得的。 它不是特定于任何版本或设备的。它发生在所有形状因素上

MAIN THREAD - CRASHED

libsystem_kernel.dylib
__pthread_kill
libsystem_c.dylib
abort
libc++abi.dylib
abort_message
libc++abi.dylib
demangling_terminate_handler()
libobjc.A.dylib
_objc_terminate()
TestApp
MSCrashesUncaughtCXXTerminateHandler() MSCrashesCXXExceptionHandler.mm:160
libc++abi.dylib
std::__terminate(void (*)())
libc++abi.dylib
__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*)
libc++abi.dylib
__cxa_throw
libobjc.A.dylib
objc_exception_throw
Foundation
-[NSString stringByReplacingCharactersInRange:withString:]
TextInput
-[TIDocumentState(StateTransitions) documentStateAfterReplacingText:withText:]
UIKitCore
-[UIKeyboardImpl setDocumentStateForAutocorrection:]
UIKitCore
-[UIKeyboardImpl acceptAutocorrection:executionContextPassingTIKeyboardCandidate:]
UIKitCore
-[UIKeyboardImpl acceptAutocorrection:executionContextPassingTIKeyboardCandidate:]
UIKitCore
-[UIKeyboardImpl acceptAutocorrectionForWordTerminator:executionContextPassingTIKeyboardCandidate:]
UIKitCore
-[UIKeyboardImpl acceptAutocorrectionForWordTerminator:]
UIKitCore
-[UIKeyboardTaskEntry execute:]
UIKitCore
-[UIKeyboardTaskQueue continueExecutionOnMainThread]
UIKitCore
-[UIKeyboardTaskQueue performTaskOnMainThread:waitUntilDone:]
UIKitCore
-[UIKeyboardImpl acceptAutocorrectionForWordTerminator:]
UIKitCore
-[UIKeyboardImpl acceptAutocorrection]
UIKitCore
-[UIKeyboardImpl acceptAutocorrection]
UIKitCore
-[UIKeyboardTaskEntry execute:]
UIKitCore
-[UIKeyboardTaskQueue continueExecutionOnMainThread]
UIKitCore
-[UIKeyboardImpl acceptAutocorrection]
UIKitCore
-[UIKeyboardImpl setDelegate:force:]
UIKitCore
-[UIInputResponderController _reloadInputViewsForKeyWindowSceneResponder:]
UIKitCore
-[UIInputResponderController _reloadInputViewsForResponder:]
UIKitCore
-[UIResponder(UIResponderInputViewAdditions) reloadInputViews]
WebKit
-[WKContentView(WKInteraction) _hideKeyboard]
WebKit
-[WKContentView(WKInteraction) _elementDidBlur]
WebKit
WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&)
WebKit
IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&)
WebKit
WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&)
WebKit
IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)
WebKit
IPC::Connection::dispatchIncomingMessages()
JavaScriptCore
WTF::RunLoop::performWork()
JavaScriptCore
WTF::RunLoop::performWork(void*)
CoreFoundation
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
CoreFoundation
__CFRunLoopDoSource0
CoreFoundation
__CFRunLoopDoSources0
CoreFoundation
__CFRunLoopRun
CoreFoundation
CFRunLoopRunSpecific
GraphicsServices
GSEventRunModal
UIKitCore
UIApplicationMain
MAMSwift
MAMSwift.cmarRealUIApplicationMain(Swift.Int32, Swift.UnsafeMutablePointer<Swift.UnsafeMutablePointer<Swift.Int8>?>, Swift.String?, Swift.String?) -> Swift.Int32 Application.swift:10
TestApp
MAMSwift.cmarHookedUIApplicationMain(Swift.Int32, Swift.UnsafeMutablePointer<Swift.UnsafeMutablePointer<Swift.Int8>?>, Swift.String?, Swift.String?) -> Swift.Int32 ApplicationSwiftHooks.swift:34
TestApp
main main.swift:12
libdyld.dylib
start

从Appstore获得了此崩溃报告,但无法确定其来源。 所有的iOS设备和版本都在发生这种情况。

修改了应用名称以测试应用

2 个答案:

答案 0 :(得分:1)

在自动补全过程中,似乎在文本替换方面存在错误。

检查您处理文本字段,文本视图等的代码。

这是您的日志的一部分,使我这样认为。

Foundation
-[NSString stringByReplacingCharactersInRange:withString:]
TextInput
-[TIDocumentState(StateTransitions) documentStateAfterReplacingText:withText:]
UIKitCore
-[UIKeyboardImpl setDocumentStateForAutocorrection:]
UIKitCore
-[UIKeyboardImpl acceptAutocorrection:executionContextPassingTIKeyboardCandidate:]
UIKitCore
-[UIKeyboardImpl acceptAutocorrection:executionContextPassingTIKeyboardCandidate:]
UIKitCore
-[UIKeyboardImpl acceptAutocorrectionForWordTerminator:executionContextPassingTIKeyboardCandidate:]
UIKitCore
-[UIKeyboardImpl acceptAutocorrectionForWordTerminator:]

答案 1 :(得分:0)

撞车的可能性很大

func textField(_ textField:UITextField,shouldChangeCharactersIn 范围:NSRange,replacementString字符串:String)-> Bool

看起来就像当用户键入一些符号ant并在顶视图中单击带有变体的完整单词时,您在基于idexe的某些字符串函数中崩溃了