ios17 UITextField and UITextView paste html crash

Last Exception Backtrace: 0 CoreFoundation 0x1b748a5e0 __exceptionPreprocess + 164 (NSException.m:249)

1 libobjc.A.dylib 0x1af7a3c00 objc_exception_throw + 60 (objc-exception.mm:356)

2 Foundation 0x1b69f4398 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 188 (NSException.m:252)

3 UniformTypeIdentifiers 0x1ce19dc00 -[UTType(Conformance) conformsToType:] + 268 (UTType.mm:623)

4 UniformTypeIdentifiers 0x1ce19da98 -[_UTConstantType conformsToType:] + 76 (UTCoreTypes.mm:437)

5 UIKitCore 0x1ba2f77b0 _bestMatchConformingToTypes + 484 (NSItemProvider+UIKitAdditions.m:275)

6 UIKitCore 0x1ba2f7408 -[NSItemProvider(UIKitAdditions) _loadObjectOfClass:userInfo:completionHandler:] + 116 (NSItemProvider+UIKitAdditions.m:285)

7 UIKitCore 0x1ba65e768 -[UITextPasteItem setDefaultResult] + 252 (UITextPasteItem.m:92)

8 UIKitCore 0x1ba65ad3c -[UITextPasteController _transformTextPasteItem:] + 212 (UITextPasteController.m:307)

9 UIKitCore 0x1ba659ef4 -[UITextPasteController beginPastingItems:toRange:delegate:matchesTextStyles:] + 928 (UITextPasteController.m:140)

10 UIKitCore 0x1ba68c45c -[UITextInputController pasteItemProviders:matchesStyle:] + 160 (UITextInputController.m:4165)

11 UIKitCore 0x1ba68c060 -[UITextInputController _pasteFromPasteboard:andMatchStyle:] + 120 (UITextInputController.m:4086)

12 UIKitCore 0x1ba68bfc4 __45-[UITextInputController _pasteAndMatchStyle:]_block_invoke + 64 (UITextInputController.m:4078)

13 UIKitCore 0x1ba306c24 +[UIPasteboard _performAsDataOwner:block:] + 104 (UIPasteboard.m:308)

14 UIKitCore 0x1ba68bf6c -[UITextInputController _pasteAndMatchStyle:] + 164 (UITextInputController.m:4077)

15 UIKitCore 0x1ba6a9658 -[UITextView paste:] + 60 (UITextView.m:5467)

⬇️ paste content ⬇️

swizzle method

UTType

conformsToType: to conformsToType_iOS:

- (BOOL)conformsToType_iOS:(UTType *)type {

    if (type == nil) {
        return false;
    }
    return [self conformsToType_iOS:type];
}

How were you able to crash the app - by drag & dropping the html files from Notes or some other way? I'm seeing users having the same crash but myself I can't recreate the crash

ios17 UITextField and UITextView paste html crash
 
 
Q