Getting a crash when hitting the last line in my app message extension code below. As soon as it tries to insert the message.
let messageCaption = NSLocalizedString("Test",
comment: "Test Comment")
let layout = MSMessageTemplateLayout()
layout.image = .add
layout.caption = messageCaption
let message = MSMessage(session: viewModel.session)
message.summaryText = product.name
message.layout = layout
viewModel.conversation.insert(message)
Once the app crashes, I am presented with this error message.
I am on Xcode 14 and this is on an iphone 14 sim - iOS 16
Once I hit report
, I get the full logs here
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: F62BD596-CD46-40CB-B798-07EC0AA3158D
CrashReporter Key: D89DFC1D-3461-4988-CEA6-FE9F2C7FAEE7
Hardware Model: MacBookPro16,1
Process: MobileSMS [21403]
Path: /Applications/Xcode 14.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Applications/MobileSMS.app/MobileSMS
Identifier: com.apple.MobileSMS
Version: 14.0 (6000)
Code Type: X86-64 (Native)
Role: Foreground
Parent Process: launchd_sim [3466]
Coalition: com.apple.CoreSimulator.SimDevice.D4E73F6D-BBC3-4DD9-A3DF-9841739EF83C [1013]
Responsible Process: SimulatorTrampoline [2001]
Date/Time: 2022-11-08 14:26:13.9868 -0500
Launch Time: 2022-11-08 14:24:24.9288 -0500
OS Version: macOS 12.6.1 (21G217)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x7ff800427368 __exceptionPreprocess + 226
1 libobjc.A.dylib 0x7ff80004dbaf objc_exception_throw + 48
2 CoreFoundation 0x7ff800436588 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x7ff80042b83d ___forwarding___ + 1431
4 CoreFoundation 0x7ff80042db38 _CF_forwarding_prep_0 + 120
5 IMCore 0x7ff810903f11 0x7ff810893000 + 462609
6 ChatKit 0x1038958c0 __46-[CKChatInputController _startEditingPayload:]_block_invoke + 591
7 ChatKit 0x1039ee5ae __69+[CKComposition compositionWithShelfPluginPayload:completionHandler:]_block_invoke + 115
8 libdispatch.dylib 0x7ff80013b7fb _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x7ff80013ca3a _dispatch_client_callout + 8
10 libdispatch.dylib 0x7ff80014c32c _dispatch_main_queue_drain + 1338
11 libdispatch.dylib 0x7ff80014bde4 _dispatch_main_queue_callback_4CF + 31
12 CoreFoundation 0x7ff8003869f7 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
13 CoreFoundation 0x7ff8003813c6 __CFRunLoopRun + 2482
14 CoreFoundation 0x7ff800380637 CFRunLoopRunSpecific + 560
15 GraphicsServices 0x7ff809c0f28a GSEventRunModal + 139
16 UIKitCore 0x10509d425 -[UIApplication _run] + 994
17 UIKitCore 0x1050a2301 UIApplicationMain + 123
18 MobileSMS 0x100194220 0x100174000 + 131616
19 dyld_sim 0x1003e92bf start_sim + 10
20 dyld 0x10930552e start + 462
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff833de600e __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff833e3d1ff pthread_kill + 263
2 libsystem_c.dylib 0x7ff800132fe0 abort + 130
3 libc++abi.dylib 0x7ff800257742 abort_message + 241
4 libc++abi.dylib 0x7ff80024895d demangling_terminate_handler() + 266
5 libobjc.A.dylib 0x7ff800031fae _objc_terminate() + 96
6 libc++abi.dylib 0x7ff800256b65 std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x7ff800256b16 std::terminate() + 54
8 libdispatch.dylib 0x7ff80013ca4e _dispatch_client_callout + 28
9 libdispatch.dylib 0x7ff80014c32c _dispatch_main_queue_drain + 1338
10 libdispatch.dylib 0x7ff80014bde4 _dispatch_main_queue_callback_4CF + 31
11 CoreFoundation 0x7ff8003869f7 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
12 CoreFoundation 0x7ff8003813c6 __CFRunLoopRun + 2482
13 CoreFoundation 0x7ff800380637 CFRunLoopRunSpecific + 560
14 GraphicsServices 0x7ff809c0f28a GSEventRunModal + 139
15 UIKitCore 0x10509d425 -[UIApplication _run] + 994
16 UIKitCore 0x1050a2301 UIApplicationMain + 123
17 MobileSMS 0x100194220 0x100174000 + 131616
18 dyld_sim 0x1003e92bf start_sim + 10
19 dyld 0x10930552e start + 462
Thread 1:: com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x7ff833ddf97a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x7ff833ddfce8 mach_msg + 56
2 CoreFoundation 0x7ff800386766 __CFRunLoopServiceMachPort + 145
3 CoreFoundation 0x7ff800380f6f __CFRunLoopRun + 1371
4 CoreFoundation 0x7ff800380637 CFRunLoopRunSpecific + 560
5 Foundation 0x7ff800c569fc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
6 Foundation 0x7ff800c56c75 -[NSRunLoop(NSRunLoop)
There's more but I can't fit in this message - any ideas? I'm stumped
Mac os Version 12.6.1