my app has encountered the same crash issue
Post
Replies
Boosts
Views
Activity
I found the main reason that caused this crash.
I debug it on my MacbookPro M1 Max which reproduced the crash every time
For UITextFiled, If you set keyboardType to UIKeyboardTypeNumberPad or UIKeyboardTypePhonePad or UIKeyboardTypeASCIICapableNumberPad, it will be crashed.
Usually, in condition of specific business function, we can`t set keyboardType to other type in order to avoid crash.
So, hope one day ,Apple can fix it as soon as possile.
typedef NS_ENUM(NSInteger, UIKeyboardType) {
UIKeyboardTypeDefault,
UIKeyboardTypeASCIICapable,
UIKeyboardTypeNumbersAndPunctuation,
UIKeyboardTypeURL,
UIKeyboardTypeNumberPad, // crash
UIKeyboardTypePhonePad, // crash
UIKeyboardTypeNamePhonePad,
UIKeyboardTypeEmailAddress,
UIKeyboardTypeDecimalPad API_AVAILABLE(ios(4.1)),
UIKeyboardTypeTwitter API_AVAILABLE(ios(5.0)),
UIKeyboardTypeWebSearch API_AVAILABLE(ios(7.0)),
UIKeyboardTypeASCIICapableNumberPad API_AVAILABLE(ios(10.0)), // crash
UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable,
};