-1

I have create core data and I want to see that data.
i used to see that data Path like this:

~/Library/Application Support/iPhone Simulator/User/Applications/

but I am getting after this again Library:

~/Library/Application Support/iPhone Simulator/User/

How do I find the sqlitedb?
I am using Firefox to see data.

Smern
  • 18,746
  • 21
  • 72
  • 90
Abhishek
  • 51
  • 1
  • 9
  • please see the above link, nicely explained to see raw sql statements in core data execution.check for viewing raw sql statemenet section in this link http://www.appcoda.com/core-data-tutorial-update-delete/ – Mukesh May 13 '15 at 11:46

1 Answers1

2

I was able to find it by going into appDelegate.m, scrolling down to the

- (NSURL *)applicationDocumentsDirectory 

method, and NSLogging the return path, like this:

// Returns the URL to the application's Documents directory.
- (NSURL *)applicationDocumentsDirectory
{
NSLog(@"%@",[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory  inDomains:NSUserDomainMask] lastObject]);

return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];

 }
PAn Kaj Khatri
  • 539
  • 1
  • 6
  • 22