Realm文件打不开问题

使用Realm数据库存储,打不开.realm文件,如图所示:


Please enter a valid encryption key for this realm file.

The encryption key must be entered as 128-character string of hexadecimal values.

1、使用Realm Browser打开报上面错误;

2、realm官方新推出的可视化工具Realm Studio可以查看.realm文件。realm studio官方下载地址

3、realm默认的存储地址,可以通过realm.configuration.fileURL打印出.realm文件在沙盒中的存储地址;

Realm.Configuration.defaultConfiguration.fileURL.path

4、根据存储路径找到Documents文件下的default.realm文件,使用Realm Studio打开即可看到存储结构及数据;

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。