crash when call keyboardAppearance of UITextDocumentProxy

In third-party keyboard app, the app is crashed when call [[UIInputViewController textDocumentProxy] keyboardAppearance].

  • Environment)

iOS 26

  • crash dump call stack

Thread 0 Crashed: 0 libobjc.A.dylib 0x0000000198433008 objc_msgSend + 8

1 UIKitCore 0x00000001a1cea570 -[_UITextDocumentInterface _controllerState] + 68

2 UIKitCore 0x00000001a1ceaef0 -[_UITextDocumentInterface documentIdentifier] + 20

3 ThirtPartyKeyboardApp 0x0000000104aad190 -[NKBKeyboardViewController _updateThemeCenterAppearanceModeIfNeeds] + 56 (NKBKeyboardViewController.m:164)

crash when call keyboardAppearance of UITextDocumentProxy
 
 
Q