当我调试应用程序时,我添加了一个新属性(@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.'
Run Code Online (Sandbox Code Playgroud)
但是当我添加忽略的属性时,它工作得很好:
+ (NSArray *)ignoredProperties {
return @[@"thead"];
}
Run Code Online (Sandbox Code Playgroud)
为什么?谢谢。