My question is related to the following three questions.
iPhone What happens to previous data when an application is updated to a new version
How iPhone app updates work
Prevent user data from being erased when updating an iOS application via iTunes
Here are my 2 questions.
Should I create the Documents directory manually in the file system or only create a βgroupβ in xcode, so that when the application is updated, will the data remain persistent?
How can I check the stability of an application during application development on a simulator or on an iPhone?
Thank.
None. A document catalog is created for you when your application is installed. You can get the path to it using:
NSString *docuDir = nil; NSArray *list = NSSearchPathForDirectoriesInDomains( NSDocumentsDirectory, NSUserDomainMask, YES/*expand tilde*/); if ([list count]) docuDir = [list objectAtIndex:0U];
As @Ben said, the directory is only deleted when the application is uninstalled explicitly (remove it from Springboard). When you create and run, Xcode effectively updates your application in place. If everything is intact (and there is no reason not to be), you should be fine.
"" . "" , , sqlite, , . CoreData, . , , . CoreData , , , , .
, , , . , "" " ".
- "". , " " :
//itsaboutcode/Library/ /iPhone Simulator/4.1//SOME_LONG_HEX_KEY_THAT_MAPS_TO_YOUR_APP/
iDevice, Xcode Organizer. "". , - . " ", , .
iPhone , "" . iDevice ( , , ).
Source: https://habr.com/ru/post/1770645/More articles:Can I change the text of a TextView link after using Linkify? - androidHow to work with a list of objects after a Hibernate request for a single object - javaWhat is the correct way to work with LateBinding in Delphi? - memoryPython 2.7, sqlite3, ValueError: failed to convert blob to buffer - pythonHow to configure HTTP authentication of HTTP header using HTTPClient? - javaControlling basic HTTP authentication with javascript - javascriptServlet hibernation timeout issue - javaCan GDB display a list of pthread mutexes held by each thread? - debuggingAutomatically resize div when resizing browser - htmlx86 Assembly: How do Disassemblers know how to break instructions? - assemblyAll Articles