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創(chuàng)建的UITextView運(yùn)行在iOS13.2上不崩潰,在iOS13.2以下的機(jī)型全部崩潰。真是無語了,在xcode11.1時還好的,xcode升級就不行了,bug真多。
下面是stackoverflow上對這個問題的討論,改用純代碼可以避免崩潰,但我不打算改純代碼,準(zhǔn)備下回舊版xcode11.1
https://stackoverflow.com/questions/58657087/after-upgrading-to-xcode-11-2-from-xcode-11-1-app-crashes-due-to-uitextlayoutv
更新一下,蘋果發(fā)了11.2.1版本來解決UITextView崩潰的bug。歷史經(jīng)驗(yàn)告訴我們,不是很有必要的話出了新版本不要馬上更新,等過段時間穩(wěn)定了再更新。今年新版本莫名其妙的bug太多,無語。