Application circumvented Objective-C runtime dealloc initiation for _UITextLayoutFragmentView

App works on Xcode's previous versions perfectly, but in Xcode 14 it is always crashed while launching, the log shows "Application circumvented Objective-C runtime dealloc initiation for _UITextLayoutFragmentView", we can't find where _UITextLayoutFragmentView is, we have no ideas, Help please!

Answered by liunianhuaguoyanxi in 729254022

we have solved it by replacing "+ (void)initialize" with "+ (void)load"

Are you using Objective-C, Swift or SwiftUI?

Im using Swift

Accepted Answer

we have solved it by replacing "+ (void)initialize" with "+ (void)load"

Application circumvented Objective-C runtime dealloc initiation for _UITextLayoutFragmentView
 
 
Q