【问题标题】:Using realm for iOS app dev, is there a way to see your database as a GUI?为 iOS 应用程序开发使用领域,有没有办法将您的数据库视为 GUI?
【发布时间】:2017-01-12 01:49:52
【问题描述】:

这对发展有很大帮助。

【问题讨论】:

标签: ios swift database realm


【解决方案1】:

是的,你可以

  1. 安装 Realm 浏览器。
  2. 设置断点并使用 lldb 控制台查找 db 文件路径

Objective-C

po [RLMRealmConfiguration defaultConfiguration]

斯威夫特

po RLMRealmConfiguration.defaultConfiguration()

  1. 打开终端并输入 open [Pasted path here]

【讨论】:

    【解决方案2】:

    您还可以设置领域对象服务器 (https://realm.io/products/realm-mobile-platform/) 并通过它打开领域。然后,您将能够使用领域浏览器远程打开领域并实时检查它们,即使应用程序在设备上运行时也是如此。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-22
      • 1970-01-01
      • 2018-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多