In iOS development when using Core Data framework, why this line wont work in real device:
NSURL *storeUrl = [NSURL fileURLWithPath:
[[self applicationDocumentsDirectory]
stringByAppendingPathComponent: @”MyDB.sqlite”]];
Doesn’t this mean that the DB file is under UUID/Documents directory? or it means it is under UUDI/MyApp.app/Documents?
applicationDocumentsDirectoryshould be pointing toGUID/YourApp/DocumentsThis would be a correct usage to get the Documents directory
What is the
applicationDocumentsDirectorycode? Assuming you are using it from an example, either from Apple or another reliable source, this should point to your apps Documents folder.