搜索
您的当前位置:首页正文

Could not cast value of type 

来源:知库网

在oc和swift混合开发的过程中,在swift中,读取coredata中的entity时候,会出现“Could not cast value of type 'NSManagedObject_AlbumRecordEntity_' (0x60000025d7c0) to 'AlbumRecordEntity' (0x110be4d90).”此类问题。

是因为Class name为空导致的,如图

崩溃的原因

需要设置一下‘Class->name’就好了

已解决
Top