@eskimo long time no see. Today, I released a new version on the store and I have this problem again.
I'm using xCode v14.3.
when i use xCode 13.4 I don't have this problem but after 4/25 I can't use xCode 13.4 anymore Thanks.
Post
Replies
Boosts
Views
Activity
@eskimo Thank you for your support.
I had resolved the issue for NotificationService, but the issue was about the swift trap(NO_CRASH_STACK).
I followed the issue you suggested this thread, but it doesn't work for me.
I tried the following ways:
set Enable Bitcode -> NO
set Strip swift symbol -> NO
add "-Wl" , "-weak-lswiftCoreData" , "-weak-lswiftCoreGraphics" to Other Linker Flags.
Do you have any other ideas about this?
Thank you!
P/s: I'm using Xcode 14.0
HI @eskimo, I'm sorry, this is my mistake.
I attached a crash log report for "Number 1" issue. Please check it.
Apple Crash Report Number1 issue.txt
@eskimo This is a full Apple Crash Report, i attached it in the file below
Apple Crash Report.txt
@eskimo
I found two Apple crash report for this.
Number 1:
0 AppNotification 0x0000000100dc9ac4 Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value + 0 (NotificationService.swift:0)
1 AppNotification 0x0000000100dc9ac4 specialized NotificationService.didReceive(_:withContentHandler:) + 2800 (<compiler-generated>:47)
2 AppNotification 0x0000000100dc73e0 didReceive + 16 (<compiler-generated>:0)
3 AppNotification 0x0000000100dc73e0 @objc NotificationService.didReceive(_:withContentHandler:) + 84
4 UserNotifications 0x00000001b2394790 -[_UNNotificationServiceExtensionRemoteContext didReceiveNotificationRequest:withCompletionHandler:] + 428 (_UNNotificationServiceExtensionRemoteContext.m:53)
5 Foundation 0x00000001a4cc1304 __NSXPCCONNECTION_IS_CALLING_OUT_TO_EXPORTED_OBJECT_S2__ + 12 (NSXPCConnection.m:272)
6 Foundation 0x00000001a4afe5f8 -[NSXPCConnection _decodeAndInvokeMessageWithEvent:flags:] + 1736 (NSXPCConnection.m:787)
7 Foundation 0x00000001a4cc141c message_handler + 224 (NSXPCConnection.m:866)
8 libxpc.dylib 0x00000001ebe460b0 _xpc_connection_call_event_handler + 68 (connection.c:0)
9 libxpc.dylib 0x00000001ebe4642c _xpc_connection_mach_event + 880 (connection.c:1227)
10 libdispatch.dylib 0x00000001a351c358 _dispatch_client_callout4 + 16 (object.m:599)
11 libdispatch.dylib 0x00000001a34f03dc _dispatch_mach_msg_invoke$VARIANT$armv81 + 376 (mach.c:2443)
12 libdispatch.dylib 0x00000001a34f8210 _dispatch_lane_serial_drain$VARIANT$armv81 + 260 (inline_internal.h:2598)
13 libdispatch.dylib 0x00000001a34f0f9c _dispatch_mach_invoke$VARIANT$armv81 + 460 (mach.c:2765)
14 libdispatch.dylib 0x00000001a34f8210 _dispatch_lane_serial_drain$VARIANT$armv81 + 260 (inline_internal.h:2598)
15 libdispatch.dylib 0x00000001a34f8e60 _dispatch_lane_invoke$VARIANT$armv81 + 452 (queue.c:3862)
16 libdispatch.dylib 0x00000001a350266c _dispatch_workloop_worker_thread + 692 (queue.c:6589)
17 libsystem_pthread.dylib 0x00000001ebe255bc _pthread_wqthread + 272 (pthread.c:2437)
18 libsystem_pthread.dylib 0x00000001ebe2886c start_wqthread + 8 (:-1)
And line code in NotificationService file
var contentHandler: ((UNNotificationContent) -> Void)?
var bestAttemptContent: UNMutableNotificationContent?
override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
self.contentHandler = contentHandler
bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
func failEarly() {
contentHandler(request.content)
}
Number 2: NO_CRASH_STACK +0
Launch Time: 2022-09-21 09:43:28.4871 +0700
OS Version: iPhone OS 11.4.1 (15G77)
Baseband Version: 2.03.12
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, Library not loaded: /usr/lib/swift/libswiftCoreData.dylib | Referenced from: /var/containers/Bundle/Application/BB60EB28-5A2D-4808-A844-7CEDBDB74825/enetviet.app/enetviet | Reason: image not found
Triggered by Thread: 0
Thread 0 Crashed:
0 dyld 0x00000001044962f8 __abort_with_payload + 8
1 dyld 0x0000000104495ad0 abort_with_payload_wrapper_internal + 100 (terminate_with_reason.c:71)
2 dyld 0x0000000104495afc abort_with_payload + 12 (terminate_with_reason.c:93)
3 dyld 0x000000010446c314 dyld::halt(char const*) + 312 (dyld.cpp:3831)
4 dyld 0x000000010446f4cc dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, un... + 7152 (dyld.cpp:6212)
5 dyld 0x000000010446921c _dyld_start + 68
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000001 x2: 0x000000016d17e930 x3: 0x0000000000000098
x4: 0x000000016d17e530 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000650
x8: 0x0000000000000020 x9: 0x0000000000000009 x10: 0x697674656e652f70 x11: 0x61655220200a7465
x12: 0x20200a7465697674 x13: 0x203a6e6f73616552 x14: 0x6f6e206567616d69 x15: 0x00646e756f662074
x16: 0x0000000000000209 x17: 0x0000000000000001 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016d17e530 x21: 0x0000000000000098 x22: 0x000000016d17e930 x23: 0x0000000000000001
x24: 0x0000000000000006 x25: 0x0000000102c80000 x26: 0x00000001044a6000 x27: 0x00000001044a6458
x28: 0x0000000102c80020 fp: 0x000000016d17e500 lr: 0x0000000104495ad0
sp: 0x000000016d17e4c0 pc: 0x00000001044962f8 cpsr: 0x00000000