【发布时间】:2016-07-13 05:34:16
【问题描述】:
当我调试应用程序时,我添加了一个新属性(@property NSString *haha;),但它显示以下异常:
Terminating app due to uncaught exception 'RLMException', reason: 'Migration is required due to the following errors:
- Property 'haha' has been added to latest object model.'
但是当我添加被忽略的属性时,效果很好:
+ (NSArray *)ignoredProperties {
return @[@"thead"];
}
为什么?谢谢。
【问题讨论】:
-
你在使用核心数据吗?
-
@balkaransingh 是的
标签: ios objective-c xcode realm