objective c - iOS App update new version delete files from Documents folder -


I wrote a new version of the iOS application (1.0.1) The background of the application is that it documents the server and store Downloads files from According to Apple's guidelines, any file should not be prepared by the user, should be backed on the cloud, so I have marked him as NSURLI. But now when I am updating the device using the ADOK delivery profile, any user-generated file is being deleted in the document folders.

Is there any way to avoid deleting those files, because these are the necessary files to run the application.

For the things behind you think you should back up the user-generated files. Do not back up files that you can easily replace by downloading them again or by generating them again.

If you mark the file, it is excluded from the backup, so that means the file can be easily changed.

When you install an app update, those files are not copied to the updated app. On the first run, your app should know that they are missing and change them automatically if necessary.

If these are files that can not be automatically replaced then do not flag them with NSURLIs. Forms backed by .

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -