美文网首页
-[NSKeyedUnarchiver decodeObject

-[NSKeyedUnarchiver decodeObject

作者: shewa_fly | 来源:发表于2020-11-09 17:14 被阅读0次

查询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以后会报这个错

相关文章

网友评论

      本文标题:-[NSKeyedUnarchiver decodeObject

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