I had been running/testing my app in the iPhone 11 simulator. I had made some new tables in sqlite, inserted data into those...etc. And all the editing of data,fetching from database and any other work were all done and tested in the iPhone 11 simulator.
But if I changed the simulator to a different one say iPhone 11 Pro Max(or any other simulator), or installed the app into a physical device, none of the new tables I created are present. But if I change back to the iPhone 11 simulator, I get back all the tables and data.
I tried deleting the old app while running in a different simulator and also tried quiting the simulator and restarting it again. But nothing works..
I still see all the tables in iPhone 11 simulator only and in any other simulator or a physical device, none of the tables I created can be seen.
What should I do in this case so that I can get back all my tables whenever I run in a different simulator or a physical device..?