Is there a way to save iPhone application data (export it and import later for testing?)

Suppose we make big changes and require the user to run some transition code from version 1.0 to 2.0. Migration will make changes to data in userdefaults, files, and other saving methods. How can we simply export all the specific application data (in the device or simulator) and be able to import it later so that we can run several tests in our transition code?

I know in the organizer xcode, you can expand the application on your device and click the export button. This is similar to what I need, but I could not find the import button.

Any ideas?

+3
source share
3

"" ( , , ). , , :

/Users/<you>/Library/Application Support/iPhone Simulator/3.1.3/Applications
/Users/<you>/Library/Application Support/iPhone Simulator/3.1.2/Applications

...

, , /sim. ( - 3.1.3 3.1.3) .

, , :

+2

, mailto: URL- ( HTML + URL- ), , URL-.

0

We use NSURLConnection for HTTP POST to and HTTP. Retrieving data from a private website. This is stupid, but it works.

0
source

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


All Articles