iOS 18 beta 5 NSAttributedString Crash

In iOS 18 beta 5 version, setting the conversion to NSAttributedString using [.documentType: NSAttributedString.DocumentType.html] occasionally causes crashes.

The same issue was encountered in previous versions. However, after running the code on the main thread, it no longer crashed. But after upgrading to the iOS 18 beta 5 version, it occasionally crashes even when running on the main thread.

How can this issue be resolved? thx~

Please file a bug report and post the Feedback ID number here for the record. Thanks

I’ve installed iOS 18 beta 5, and this issue is happening for me almost every minute.​⬤

Our app had this problem too, how can I fix it?

iOS 18 beta 5 NSAttributedString Crash
 
 
Q