0
votes

How to open sqlite database when we use coredata in iOS ?
In my case it shows three database files :

  1. (appname).sqlite
  2. (appname).sqlite-shm
  3. (appname).sqlite-wal

When I tried to open via terminal it shows file is corrupted or encrypted. Can anyone guide me...

2
Only the first one is the database (appname).sqlite the others are shared memory file and write-ahead-log file for sqlite - dvhh
How did you try to open it via terminal? - Matthias Bauch

2 Answers

1
votes

get the three file into the desktop and open with mozillafirefox->tools->SQLiteManager

0
votes

After closing my application and Xcode . I opened database file in sqlite manager of mozilla. File opened successfully.

The main thing is your app should be closed.