gpt4 book ai didi

Unity 应用程序的 iOS 崩溃

转载 作者:行者123 更新时间:2023-11-28 23:51:32 24 4
gpt4 key购买 nike

我收到了很多关于 xcode 的崩溃报告以及我的 Unity 应用程序的崩溃日志。我知道这与“UIKit”有关。有谁知道这个错误的原因?谢谢。

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0

Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000183dd92e0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000183f7a288 pthread_kill$VARIANT$mp + 376 (pthread.c:1484)
2 libsystem_c.dylib 0x0000000183d47d0c abort + 140 (abort.c:91)
3 libsystem_malloc.dylib 0x0000000183e11838 free + 636 (malloc.c:1663)
4 libc++.1.dylib 0x00000001834c64ec std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string() + 32 (new:234)
5 libsystem_c.dylib 0x0000000183d488f0 __cxa_finalize_ranges + 384 (atexit.c:274)
6 libsystem_c.dylib 0x0000000183cf225c exit + 24 (exit.c:78)
7 UIKit 0x000000018e240f00 -[UIApplication _terminateWithStatus:] + 468 (UIApplication.m:6000)
8 UIKit 0x000000018e55f8c4 __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.271 + 336 (_UICanvasLifecycleMonitor.m:528)
9 UIKit 0x000000018e349884 _runAfterCACommitDeferredBlocks + 296 (UIApplication.m:2519)
10 UIKit 0x000000018e33f958 _cleanUpAfterCAFlushAndRunDeferredBlocks + 384 (UIApplication.m:2497)
11 UIKit 0x000000018e22451c _afterCACommitHandler + 132 (UIApplication.m:2549)
12 CoreFoundation 0x00000001842fa910 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1824)
13 CoreFoundation 0x00000001842f8238 __CFRunLoopDoObservers + 412 (CFRunLoop.c:1934)
14 CoreFoundation 0x00000001842f8884 __CFRunLoopRun + 1436 (CFRunLoop.c:2948)
15 CoreFoundation 0x0000000184218da8 CFRunLoopRunSpecific + 552 (CFRunLoop.c:3245)
16 GraphicsServices 0x00000001861fe020 GSEventRunModal + 100 (GSEvent.c:2245)
17 UIKit 0x000000018e238758 UIApplicationMain + 236 (UIApplication.m:3965)
18 texasapp 0x0000000100b376e0 main + 160 (main.mm:33)
19 libdyld.dylib 0x0000000183ca9fc0 start + 4


Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000001 x7: 0x000000000000016e
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000183f7a110 x11: 0x000000000000000a
x12: 0x0000000000000000 x13: 0x0000000000000033 x14: 0x0000000000000000 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000500 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001b66dcb40 x21: 0x0000000000000000 x22: 0x0000000000000303 x23: 0x00000001b66dcc20
x24: 0x00000001020b0000 x25: 0x0000000000000005 x26: 0x0000000000000003 x27: 0x0000000000000002
x28: 0x0000000000000002 fp: 0x000000016f2ce540 lr: 0x0000000183f7a288
sp: 0x000000016f2ce510 pc: 0x0000000183dd92e0 cpsr: 0x00000000

最佳答案

这是您的代码中发生的未处理的异常。

要正确调试它,您需要对其进行符号化 ( https://support.unity3d.com/hc/en-us/articles/208593516-How-to-symbolicate-iOS-tvOS-crashlogs )。

此外,UIKit 是一个处理所有 UI 的 Apple 框架。如果发生未处理的情况,它具有杀死您的应用程序的功能。它会出现在 100% iOS 崩溃的崩溃堆栈中,但这并不意味着它导致了问题。 (只是告诉你,以免被误导)

关于Unity 应用程序的 iOS 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51966152/

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