Any use of keyboard crashing app after upgrading to Xcode 13

Every UITextview or UITextfield in my app crashes now after upgrading to Xcode 13.0

Here is the crash:

and here is the trace:

I put a breakpoint on every call to stringByTrimmingCharacteresInSet and it shows nothing. This bug is a result of updating Xcode.

Any help would be very appreciated!

Any use of keyboard crashing app after upgrading to Xcode 13
 
 
Q