GouthamDevaraju
GouthamDevaraju

Reputation: 115

Issue in viewing sqlite file created by Core Data in iOS 7

I have an issue when am trying to access the database file that is created by core data. The DB file is in Documents folder. I've copied this to my desktop and opened it using Firefox plug in. Hello.sqlite file doesn't contain any rows that I have inserted values using core data. Am running app using iOS 7 simulator. I can see the rows are inserted when am using iOS-6. Do any body have an idea, why I cant see values in my Hello.sqlite file????

Upvotes: 2

Views: 1468

Answers (3)

Maddy
Maddy

Reputation: 389

I hope the below link is useful for u http://www.codigator.com/tutorials/ios-core-data-tutorial-with-example/

Upvotes: 0

Nimit Parekh
Nimit Parekh

Reputation: 16864

To view your project data do the following:

  1. Run your xcode project on your Mac (Must have a database included)
  2. Launch CoreDataPro
  3. Select Menu->File->New Project
  4. Select the "File" tab you could use file tab and browse to "/Users/UserName/Library/Application Support/iPhone Simulator/6.0/Applications/CD000457-0F95-4AFF-9C0A-829F681557AF(select like wise folder)"/your application" copy and paste on Desktop
  5. Step 2: Persistence file load that is your .sql File
  6. copy .sqlite file from where you can store (i.e /Users/Your User Name/Library/Application Support/iPhone Simulator/6.0/Applications/CD000457-0F95-4AFF-9C0A-829F681557AF/Documents)
  7. Select Open
  8. Browse your Application data

Download from Wiki

For More detail Visit here

Direct Coredata Download Link

Upvotes: 3

Jesse
Jesse

Reputation: 1697

This is because of a new SQLite journal mode used in iOS 7. If you set it to the old mode as shown in the answer to the following SO question you should see your data again.

How to disable WAL journal mode

Upvotes: 1

Related Questions