升级后为什么会出现此错误?:'磁盘上的Realm文件版本高于当前架构版本'

时间:2015-02-07 12:51:33

标签: ios ios8 xcode6 realm

我从Realm 0.89升级了。?到0.90.5。关于我的Realm文件和我的迁移块没有任何改变。但是,现在我收到此错误:Terminating app due to uncaught exception 'RLMException', reason: 'Version of Realm file on disk is higher than current schema version'

我尝试更改迁移块以将架构版本设置为999,但这不起作用。

知道如何解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

您可以使用函数schemaVersionAtPath检查磁盘上Realm文件的版本,可能大于999。

public func schemaVersionAtPath(realmPath: String, encryptionKey: NSData? = nil,
                                error: NSErrorPointer = nil) -> UInt64?
相关问题