I have created sqlite database.
I add this sqlite file in my application but when I run the app in the simulator and check the sqlite file’s path in document directory and I open the sqlite file on document directory’s path at that time the table which I have created does not appear.
In local copy I can see the table also in my project folder I can see the table but on the path of simulator I am not able to see the table
so in my console it shows me the error:
Sqlite Prepare failed: no such table
My response below assumes that your database is properly formatted and functional. You could test easily via the command line. In my own apps, all tab bar controllers apps, I place the db access code in the app delegate. The two methods in the app delegate are as follows:
Also: