How to edit sqlite database of Success Quotes?
1) – First, Open the project on xcode and run it on Simulator.
2) – After running it on Simulator, in xcode go to the output and do a search in it by pressing (cmd + F), and search for (/users) word.
3) – After found the first result, copy the line without the name of the sqlite database file (for example: /Users/dt4it/Library/Application Support/iPhone Simulator/7.1/Applications/595D9ECD-4E89-45E3-8C59-101CEE77E7E3/Documents/) 4) – Open the (Terminal) on Mac OS and paste the copied line and add \ between the two words with space like (Application Support) make it as (Application\ Support) and do the same with (iPhone Simulator) to make it as (iPhone\ Simulator) to make the line as (/Users/dt4it/Library/Application\ Support/iPhone\ Simulator/7.1/Applications/595D9ECD-4E89-45E3-8C59-101CEE77E7E3/Documents/), the press Enter.
5) – write the following command (sqlite3 successQuotes2.sqlite3;) then press Enter.
You’ll see three generated lines that mean the sqlite file is logged well.
To see all the tables, write the command (.tables) and all existed tables will be typed.
Then you can edit, delete, add and do what all you need by sqlite commands.