andpor / react-native-sqlite-storage

Full featured SQLite3 Native Plugin for React Native (Android and iOS)
MIT License
2.75k stars 521 forks source link

how to see database in iOS simulator on Mac book #531

Open sunggun1 opened 2 years ago

sunggun1 commented 2 years ago

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?

kapobajza commented 2 years ago
  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