gpt4 book ai didi

ios - 如何处理通知服务扩展崩溃导致的崩溃?

转载 作者:搜寻专家 更新时间:2023-10-31 23:06:24 27 4
gpt4 key购买 nike

通知服务扩展变得奇怪我认为这可能是由于从 receivedNotification 方法发送 AWS 事件可能需要更多时间导致操作系统终止它。如果是这种情况,那么我应该如何处理崩溃并防止崩溃。请检查崩溃日志,

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace ASSERTIOND, Code 0xdead10cc
Triggered by Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001c829bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001c829b3a8 mach_msg + 72
2 CoreFoundation 0x00000001c869fbc4 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x00000001c869aa60 __CFRunLoopRun + 1396
4 CoreFoundation 0x00000001c869a1cc CFRunLoopRunSpecific + 436
5 Foundation 0x00000001c908f404 -[NSRunLoop+ 33796 (NSRunLoop) runMode:beforeDate:] + 300
6 Foundation 0x00000001c90cadf4 -[NSRunLoop+ 278004 (NSRunLoop) run] + 88
7 libxpc.dylib 0x00000001c836c070 _xpc_objc_main + 516
8 libxpc.dylib 0x00000001c836ea30 xpc_main + 180
9 Foundation 0x00000001c90ccdb0 +[NSXPCListener serviceListener] + 0
10 PlugInKit 0x00000001ce2eb498 0x1ce2d8000 + 79000
11 PlugInKit 0x00000001ce2eb2c4 0x1ce2d8000 + 78532
12 PlugInKit 0x00000001ce2eb848 0x1ce2d8000 + 79944
13 Foundation 0x00000001c92b46bc NSExtensionMain + 64
14 libdyld.dylib 0x00000001c815abb4 start + 4

最佳答案

@Sumeet.Jain you need to set debug executable on your extension project their are some steps here.

第 1 步:选择要运行的服务扩展项目
第 2 步:您将在某些选项“SELECT EDIT SCHEME”选项下方看到您的项目列表

第 3 步:之后您必须运行 RUN -> INFO -> EXECUTABLE
第 4 步:您应该将“ASK TO LAUNCH”更改为“YOUR PROJECT”

THATS IT.

关于ios - 如何处理通知服务扩展崩溃导致的崩溃?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53533495/

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