This issue does not appear if remove below code and KVO observes.
UITextView.cpk_swizzle(method1: "dealloc", method2: #selector(UITextView.cpk_deinit))
I found some answers. but I can not found the reason.
Deinitializers are called automatically, just before instance deallocation takes place. You are not allowed to call a deinitializer yourself. Superclass deinitializers are inherited by their subclasses, and the superclass deinitializer is called automatically at the end of a subclass deinitializer implementation. Superclass deinitializers are always called, even if a subclass does not provide its own deinitializer.
co-worker found this issue.
I do not know what is make this problem exactly.
This issue does not appear if remove below code and KVO observes.
UITextView.cpk_swizzle(method1: "dealloc", method2: #selector(UITextView.cpk_deinit))
I found some answers. but I can not found the reason.
Someone did test
method swizzle
already(https://github.com/inamiy/Swizzle/blob/master/SwizzleTests/_TestObject.swift).It can be a reason.