UITextView Apple Pencil crash

I used Apple Pencil to input text on UITextView, but the program crashed when I long pressed and tried to use the insert function.

warning: Module "/Users/baochengzhu/Library/Developer/Xcode/iOS DeviceSupport/iPad14,1 17.0.3 (21A360)/Symbols/usr/lib/libobjc.A.dylib" uses triple "arm64e-apple-ios17.0.0", which is not compatible with the target triple "arm64-apple-ios11.0.0". Enabling per-module Swift scratch context

who can help me ?

UITextView Apple Pencil crash
 
 
Q