react-native-sqlite-storage icon indicating copy to clipboard operation
react-native-sqlite-storage copied to clipboard

how to see database in iOS simulator on Mac book

Open sunggun1 opened this issue 3 years ago • 1 comments

I am using react-native run-ios and my pre-populated database worked on the iOS simulator.

But I want to show the real db datas in the simulator through DB browser for SQLite.

how can I check it? or download it?

sunggun1 avatar Aug 09 '22 06:08 sunggun1

  1. Open your Finder, and in the upper menu click on Go -> Go to Folder... (Or press SHIFT + CMD + G)
  2. Enter ~/Library/Developer/CoreSimulator/Devices/ and click Go
  3. In that folder you should search for the name of your database with the .db extension. For example if the name of your database is test, you would search for test.db.
  4. Open the .db file with DB browser

P.S.

Make sure to click on "Devices", because This Mac is pre-selected by default:

image

kapobajza avatar Aug 11 '22 13:08 kapobajza