-[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class崩溃问题

查询bugly报了 -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (UserInfoModel) for key (root) because no class named "UserInfoModel" 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).错误


1.网上有说改工程名会报。这个是会的

2.自己发现UserInfoModel是以前版本的一个类 后来更新删除了 但有的用户是一直更新上来的  执行NSKeyedUnarchiver unarchiveObjectWithData会崩。  但是最近2个月才爆发出来 应该是iOS13以后会报这个错

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容