Realm - Add file with initial data to project (iOS/Swift)

后端 未结 7 1417
独厮守ぢ
独厮守ぢ 2020-12-23 12:47

I\'m developing an application for iOS using swift and chose Realm as a database solution for it. I wrote default data in AppDelegate using write/add function from realm doc

相关标签:
7条回答
  • 2020-12-23 13:29

    Download Realm Studio in your system. Then print the path from Xcode and copy it:

    print(Realm.Configuration.defaultConfiguration.fileURL!)
    

    Then open the terminal and write:

    open //file path
    

    It will open the file in Realm Studio and you can see your model data there.

    0 讨论(0)
提交回复
热议问题