How to check the stability of these applications during development?

My question is related to the following three questions.

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.

+3
source share
3 answers
  • 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.

+3
source

"" . "" , , sqlite, , . CoreData, . , , . CoreData , , , , .

, , , . , "" " ".

+1

- "". , " " :

//itsaboutcode/Library/ /iPhone Simulator/4.1//SOME_LONG_HEX_KEY_THAT_MAPS_TO_YOUR_APP/

iDevice, Xcode Organizer. "". , - . " ", , .

iPhone , "" . iDevice ( , , ).

+1

Source: https://habr.com/ru/post/1770645/


All Articles