美文网首页
Could not instantiate class name

Could not instantiate class name

作者: 大牛油果 | 来源:发表于2019-11-05 15:04 被阅读0次

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)

xcode升级到11.2后用xib创建的UITextView运行在iOS13.2上不崩溃,在iOS13.2以下的机型全部崩溃。真是无语了,在xcode11.1时还好的,xcode升级就不行了,bug真多。

下面是stackoverflow上对这个问题的讨论,改用纯代码可以避免崩溃,但我不打算改纯代码,准备下回旧版xcode11.1
https://stackoverflow.com/questions/58657087/after-upgrading-to-xcode-11-2-from-xcode-11-1-app-crashes-due-to-uitextlayoutv

更新一下,苹果发了11.2.1版本来解决UITextView崩溃的bug。历史经验告诉我们,不是很有必要的话出了新版本不要马上更新,等过段时间稳定了再更新。今年新版本莫名其妙的bug太多,无语。

相关文章

网友评论

      本文标题:Could not instantiate class name

      本文链接:https://www.haomeiwen.com/subject/bvasbctx.html