Keyboard cause crash Xcode 13 beta 5, iOS 15

Hello, my app is crashing when I click on the keyboard, I select my textfield, the keyboard open properly, but once I select anything on the keyboard the crash happen, giving the log below.

Im running the app on my iPhone 8 that have iOS 15 beta, from the Xcode 13 beta 5. Im any other device with iOS 14 (not matter the version) is working properly.

2021-09-14 14:11:12.860707+0100 BonnetDriverDev[3595:649035] -[__NSArray0 stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x1f5c13500
2021-09-14 14:11:12.864293+0100 BonnetDriverDev[3595:649035] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArray0 stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x1f5c13500'
*** First throw call stack:
(0x180cddcac 0x197d0a748 0x180dad6d0 0x180c77edc 0x180c7714c 0x1830f752c 0x1834a2360 0x102f0e1c8 0x102f0fb1c 0x1830fad74 0x1835812a0 0x102f0e1c8 0x102f0fb1c 0x183019fc4 0x183019e28 0x183018c98 0x183496874 0x102f0e1c8 0x102f0fb1c 0x18351e144 0x183e49624 0x183e556b8 0x183e55180 0x183e48c3c 0x183e47db4 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e56594 0x183e47e20 0x183c81fac 0x183be8384 0x183c8afd4 0x183c8b0e4 0x183523ae0 0x1833dad2c 0x1823cc98c 0x180cfe220 0x180d0e248 0x180c515e8 0x180c56a18 0x180c69d8c 0x19ad2a9a0 0x18349e420 0x183231e18 0x100e585a4 0x101f0c190)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArray0 stringByTrimmingCharactersInSet:]: unrecognized selector sent to instance 0x1f5c13500'
terminating with uncaught exception of type NSException

Without the entire crash log we can't really give much information on what you are seeing. I would recommend that you file a feedback report on this.

Here you can find the entire crash log. I think is important to mention that I present this view that only have a textfield in the middle, nothing else, an the error happen once I touch the keyboard

i have same problem app is crash when select some textfiled in app

Well at the end I find a solution, but Im quite sure that was probably to complicated.

My app was generated with Xcode 10, so I decided to create a new project with the Xcode 13 and move all the folders and configurations to this new project, that solved my error and any other problem that I was having.

If anybody had a better solution please shared.

Same problem here. For my case, I found a fix.

In my Info.plist file I had the following code, which caused the problem:

<key>CFBundleDisplayName</key>
<array>
	<dict>
		<key>CFBundleURLName</key>
		<string></string>
	</dict>
</array>

I don't know how why this code affects the keyboard when typing, but after removing it everything works. Even if you don't have this in your Info.plist file, you should check the content of this file for similar values.

Hope it helps!

Keyboard cause crash Xcode 13 beta 5, iOS 15
 
 
Q