title: How make local Realm database in swift on physical device?
body: <p>I'm trying to make local database in Realm. I created new project which I add Realm pods.
  Then I made data model and saved few data. Then I download data from physical device <strong>Window >Devices and Simulators >Devices</strong> find installed app and Download Container. In the container I found fold Documents with realm files. </p>
  
  <p><a href="https://i.stack.imgur.com/CXmeq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CXmeq.png" alt="enter image description here"></a></p>
  
  <p>Then I opened default.realm file and started writing my database. After done database I drag and drop that container (which I downloaded) to my project. In Xcode load my database this way <strong>Product >Scheme >Edit Scheme > Application Data</strong> select my database.</p>
  
  <p>During writing app I notice I can only read data from database and if I catch it right I made by mistake Sandbox, and that is reason why a can't write new data.</p>
  
  <p>I tried different way how to save data with CoreData and same result.
  I can save data, when app run I downloaded container and checked in SQLite file and inside I found data which I saved in app but then I re-run app SQLite file is empty.</p>
  
  <p>So I would like to ask what to do now. If is different way how to load local database to app or make multi Realms database?
  What is the best way to use local database in app where you can CRUD?</p>
  
  <p>Thank you for any help, I am beginner in the developer world and sorry for my English level :).</p>