Question

I would like to delete some files from apps temporary folder if user updates to specific version.

Is there an option to do so kind of a post processing after app is being updated and installed from App Store?

Was it helpful?

Solution

No, not directly.

You have to include such a logic into your app. You could write a block that checks if the files are present in the applicationDidFinishLaunching function using dispatch_async to run it on a low priority queue after your app was started.

You could also write a flag in the userdefaults after the block is done so it is only executed once after the update.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top