Immediate crash of Apple Watch simulator when typing a key

I get a crash in Apple Watch simulator (Series 9 45mm 18.0) as soon as the app launch if I type anything on external keyboard (just hitting command key for instance to capture a screenshot). Same crash on series 7 (45mm, OS 18.1)

But app works normally when I use mouse to interact with the app on simulator.

App does not crash on real device (Watch 4 OS 10.4.1).

Nor does it crash on Series 6 simulator (44 mm OS 17.4). Here are the log I could collect (apparently, they contain sensitive language !!! so I attach as a file.:

libsystem_kernel.dylib`__pthread_kill:
    0x104509100 <+0>:  mov    x16, #0x148               ; =328 
    0x104509104 <+4>:  svc    #0x80
->  0x104509108 <+8>:  b.lo   0x104509124               ; <+36>
    0x10450910c <+12>: stp    x29, x30, [sp, #-0x10]!
    0x104509110 <+16>: mov    x29, sp
    0x104509114 <+20>: bl     0x104501ccc               ; cerror_nocancel
    0x104509118 <+24>: mov    sp, x29
    0x10450911c <+28>: ldp    x29, x30, [sp], #0x10
    0x104509120 <+32>: ret    
    0x104509124 <+36>: ret    


Application context data is nil
Application context data is nil
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSFrozenDictionaryM isEnabled]: unrecognized selector sent to instance 0x600000270340'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001808024a4 __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x000000018006e0f4 objc_exception_throw + 72
	2   CoreFoundation                      0x00000001808176fc +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
	3   CoreFoundation                      0x0000000180806384 ___forwarding___ + 1236
	4   CoreFoundation                      0x0000000180808a3c _CF_forwarding_prep_0 + 92
	5   UIKitCore                           0x00000001aa40ec34 -[UIPressesEvent _addGesturesForPress:] + 216
	6   UIKitCore                           0x00000001aa40eb48 -[UIPressesEvent _addPress:forDelayedDelivery:] + 80
	7   UIKitCore                           0x00000001aa3ac258 -[UIApplication _prepareButtonEvent:withPressInfo:] + 772
	8   UIKitCore                           0x00000001aa3b33cc -[UIApplication _handleKeyUIEvent:] + 128
	9   UIKitCore                           0x00000001aa3c5b3c -[UIResponder _handleKeyUIEvent:] + 52
	10  UIKitCore                           0x00000001aa3c5b3c -[UIResponder _handleKeyUIEvent:] + 52
	11  UIKitCore                           0x00000001aa3c5b3c -[UIResponder _handleKeyUIEvent:] + 52
	12  UIKitCore                           0x00000001aa3c5b3c -[UIResponder _handleKeyUIEvent:] + 52
	13  UIKitCore                           0x00000001aa3c5b3c -[UIResponder _handleKeyUIEvent:] + 52
	14  UIKitCore                           0x00000001aa3c5b3c -[UIResponder _handleKeyUIEvent:] + 52
	15  UIKitCore                           0x00000001aa3c5b3c -[UIResponder _handleKeyUIEvent:] + 52
	16  UIKitCore                           0x00000001aa3c5b3c -[UIResponder _handleKeyUIEvent:] + 52
	17  UIKitCore                           0x00000001aa3b3540 -[UIApplication handleKeyUIEvent:] + 52
	18  UIKitCore                           0x00000001aa3b332c -[UIApplication _handleKeyHIDEvent:usingSyntheticEvent:] + 620
	19  UIKitCore                           0x00000001aa425dc8 __processEventQueue + 8376
	20  UIKitCore                           0x00000001aa41fd18 updateCycleEntry + 156
	21  UIKitCore                           0x00000001a9ac7288 _UIUpdateSequenceRun + 76
	22  UIKitCore                           0x00000001aa30d6e8 schedulerStepScheduledMainSection + 168
	23  UIKitCore                           0x00000001aa30cb30 runloopSourceCallback + 80
	24  CoreFoundation                      0x0000000180767fa0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
	25  CoreFoundation                      0x0000000180767ee8 __CFRunLoopDoSource0 + 172
	26  CoreFoundation                      0x0000000180767660 __CFRunLoopDoSources0 + 232
	27  CoreFoundation                      0x0000000180761ed8 __CFRunLoopRun + 788
	28  CoreFoundation                      0x00000001807617ac CFRunLoopRunSpecific + 536
	29  GraphicsServices                    0x0000000185ffab70 GSEventRunModal + 160
	30  UIKitCore                           0x00000001aa39a4ec -[UIApplication _run] + 796
	31  UIKitCore                           0x00000001aa39e5cc UIApplicationMain + 124
	32  WatchKit                            0x000000019d0769d8 WKExtensionMain + 812
	33  dyld                                0x00000001030e1410 start_sim + 20
	34  ???                                 0x0000000102fbe274 0x0 + 4345029236
)
libc++abi: terminating due to uncaught exception of type NSException

Just filed a bug report: Jan 31, 2025 at 7:02 PM – FB16431872

Should be noted that no crash when building the same app, with same Xcode, but through iPhone iOS 17.4 instead of 18.x.

Note: I reported a simulator issue (for iOS app with SwiftUI) that does only appear on iOS 18.2 simulators (no access to app settings from iPhone settings) : Dec 27, 2024 at 9:37 AM – FB16175635

Immediate crash of Apple Watch simulator when typing a key
 
 
Q