-[NSKeyedUnarchiver decodeObject

2020-11-09  本文已影响0人  shewa_fly

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

上一篇 下一篇

猜你喜欢

热点阅读