SQLite Forum

Timeline
Login

1 forum post by user Ritesh

2021-06-03
12:37 Post: SQLite DB corrupt while inserting the data in iOS application. (artifact: 5a46109077 user: Ritesh)

In our iOS application, we have provided the data Downloading feature from the API. Here we first delete the data from the local SQLite database and then insert the newly fetched data from the API into SQLite DB. ‚Äč It works fine for the 1st and 2nd time when we install the app on iOS. But after that, we get a "database file is corrupt" error every time we try to download the data.

Sometimes it shows the following error instead of the above one: "database disk image is malformed" error