Widget Extension built with Xcode 14.0 beta 4 Crashes immediately on iOS 15 or earlier (EXC_BREAKPOINT code=1, subcode=0x187e48e60) causing blank widget

Hello,

My app that has a Widget extension was working fine when built with Xcode 13.

With Xcode 14.0 beta 3 and 4, the widget app extension works fine on iOS 16 but crashed on iOS 15 and lower. The widgets become blank.

Here are the crash logs.

Crash seems to be located in PluginKit / WidgetKit libs. I am pretty sure that it is linked to a reference to something that is present on iOS 16 but not on iOS 15 and earlier, but can't figure what...

Incident Identifier: E64B3B90-5FEC-415D-93B7-7C85B60A1272
CrashReporter Key:   2459bfa2a6c63e93eaf5daed8b12161062f537f9
Hardware Model:      iPhone10,6
Process:             Widget [926]
Path:                /private/var/containers/Bundle/Application/188DC7BF-96B3-4266-AB0D-C43094F87394/App.app/PlugIns/Widget.appex/Widget
Identifier:          com.xxxxxxx.yyyyyyyyy.Widget
Version:             1.2.3 (91)
Code Type:           ARM-64 (Native)
Role:                Background
Parent Process:      launchd [1]
Coalition:           com.xxxxxxx.yyyyyyyyy.Widget [703]

Date/Time:           2022-07-28 13:25:21.9986 +0200
Launch Time:         2022-07-28 13:25:21.9370 +0200
OS Version:          iPhone OS 15.5 (19F5062g)
Release Type:        Beta
Baseband Version:    5.03.01
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000187e4bc20
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: exc handler [926]

Triggered by Thread:  0

Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   WidgetKit                     	       0x187e4bc20 0x187dd3000 + 494624
1   WidgetKit                     	       0x187e4bc04 0x187dd3000 + 494596
2   WidgetKit                     	       0x187de2858 0x187dd3000 + 63576
3   libdispatch.dylib             	       0x180547094 _dispatch_call_block_and_release + 24
4   libdispatch.dylib             	       0x180548094 _dispatch_client_callout + 16
5   libdispatch.dylib             	       0x180529858 _dispatch_main_queue_drain + 888
6   libdispatch.dylib             	       0x1805294d0 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36
7   CoreFoundation                	       0x1808430c4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
8   CoreFoundation                	       0x1808005e8 __CFRunLoopRun + 2544
9   CoreFoundation                	       0x180813240 CFRunLoopRunSpecific + 572
10  Foundation                    	       0x181f22efc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232
11  Foundation                    	       0x181f23670 -[NSRunLoop(NSRunLoop) run] + 88
12  libxpc.dylib                  	       0x1dba26f74 _xpc_objc_main + 532
13  libxpc.dylib                  	       0x1dba2912c xpc_main + 152
14  Foundation                    	       0x181f6914c -[NSXPCListener resume] + 292
15  PlugInKit                     	       0x1be0db804 0x1be0bf000 + 116740
16  PlugInKit                     	       0x1be0c5f18 0x1be0bf000 + 28440
17  PlugInKit                     	       0x1be0c4f74 0x1be0bf000 + 24436
18  ExtensionFoundation           	       0x1c9e083bc EXExtensionMain + 296
19  Foundation                    	       0x181fc85ac NSExtensionMain + 216
20  dyld                          	       0x105f003d0 start + 444

Thread 1:
0   libsystem_pthread.dylib       	       0x1db9f3934 start_wqthread + 0

Thread 2 name:   Dispatch queue: com.apple.NSXPCConnection.user.endpoint
Thread 2:
0   libobjc.A.dylib               	       0x197fd2cf4 objc_msgSend + 20
1   Foundation                    	       0x181f3bc04 -[NSKeyedUnarchiver _validatePropertyListClass:forKey:] + 76
2   Foundation                    	       0x181f4001c _decodeObjectBinary + 504
...

Help appreciated! Thanks.

Clement

Same issue for me!

Widget Extension built with Xcode 14.0 beta 4 Crashes immediately on iOS 15 or earlier (EXC_BREAKPOINT code=1, subcode=0x187e48e60) causing blank widget
 
 
Q