NSInvalidArgumentException Crash During Keyboard Language Switch on iOS 26

Hello,

I have been receiving crash reports on iOS 26 related to a view containing a UITextField. Although I have not been able to reproduce the issue locally and the exact reproduction steps are unknown, the call stack suggests the crash may be related to language or input method changes.

If anyone has encountered a similar crash on iOS 26 or has any insights regarding language/input-related issues impacting UITextField behavior, your help would be greatly appreciated. The call stack from the reports is attached below.

Exception

NSInvalidArgumentException -[__NSPlaceholderArray initWithObjects:count:] attempt to insert nil object from objects[1]

Fatal Exception: NSInvalidArgumentException

0  CoreFoundation                 0xc98c8 __exceptionPreprocess
1  libobjc.A.dylib                0x317c4 objc_exception_throw
2  CoreFoundation                 0xe1d7c -[__NSPlaceholderArray initWithObjects:count:]
3  CoreFoundation                 0x1485d0 +[NSArray arrayWithObjects:count:]
4  UIKitCore                     0xfc4d44 -[UIInlineInputSwitcher updateInputModes:withHUD:]
5  UIKitCore                     0xfc4fe0 -[UIIndicatorInputSwitcher switchMode:withHUD:withDelay:]
6  UIKitCore                     0xfc31d4 -[UIInputSwitcher showsLanguageIndicator:]
7  UIKitCore                     0xa16dc8 __140-[_UIKeyboardStateManager _setupDelegate:delegateSame:hardwareKeyboardStateChanged:endingInputSessionIdentifier:force:delayEndInputSession:]_block_invoke_4
8  libdispatch.dylib             0x1abc _dispatch_call_block_and_release
9  libdispatch.dylib             0x1b7cc _dispatch_client_callout
10 libdispatch.dylib             0x38af0 _dispatch_main_queue_drain.cold.5
11 libdispatch.dylib             0x10ea8 _dispatch_main_queue_drain
12 libdispatch.dylib             0x10de4 _dispatch_main_queue_callback_4CF
13 CoreFoundation                0x6b520 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
14 CoreFoundation                0x1dd14 __CFRunLoopRun
15 CoreFoundation                0x1cc44 _CFRunLoopRunSpecificWithOptions
16 GraphicsServices             0x1498 GSEventRunModal
17 UIKitCore                    0xaa6d8 -[UIApplication _run]
18 UIKitCore                    0x4ec24 UIApplicationMain

Thank you!

NSInvalidArgumentException Crash During Keyboard Language Switch on iOS 26
 
 
Q