小编Ans*_*hao的帖子

'RLMException',原因:'由于出现以下错误,需要迁移

当我调试应用程序时,我添加了一个新属性(@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)

为什么?谢谢。

xcode objective-c realm ios

0
推荐指数
1
解决办法
8433
查看次数

标签 统计

ios ×1

objective-c ×1

realm ×1

xcode ×1