[英]How to import/export my Realm Database from/to my iPhone app
I have created an app with Xcode based on Realm DB, but now I don not know how the user can export/import the Realm db file. 我已经使用基于Realm DB的Xcode创建了一个应用程序,但是现在我不知道用户如何导出/导入Realm数据库文件。 I can not access to my device(Iphone) from Realm Browser.
我无法从Realm Browser访问我的设备(Iphone)。
Is there a way to do this? 有没有办法做到这一点? Either by code or with Realm browser?
通过代码还是通过Realm浏览器?
Maybe it could help you: 也许它可以帮助您:
On Xcode, with your device plugged, do the command CMD+SHIFT+2. 在Xcode上,在插入设备的情况下,执行命令CMD + SHIFT + 2。 You will see a list of your installed apps.
您将看到已安装应用程序的列表。 Selection your app then click on wheel 1
选择您的应用,然后单击滚轮1
You will be able to download or replace the container of your app where you will find your Realm db file in AppData/Documents. 您将能够下载或替换您的应用程序容器,在AppData / Documents中可以找到Realm db文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.