After upgrading to Xcode 11.2 from Xcode 11.1 my app crashes:
*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITextLayoutView because no class named _UITextLayoutView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)'
Why is this happening? How can I prevent this crash?
I had the same issue I just upgraded my Xcode 11.2 to 11.2.1 it worked fine.
After upgrade I have tested the same on iOs 13 and iOS 12 and it was working fine.
Improving on @garafajon answer. For me it works in most cases.
It is a bug with Xcode 11.2. Subclassed Textviews are crashing on all devices not having the neweset iOS build (13.2) installed. You probably better not build a release with that build.
You can now: