According to this Q&A:

https://developer.apple.com/library/ios/qa/qa1779/_index.html

An app update is a package that is created by Apple and only contains files that have changed or are new. When a user updates their app, they only get the new files.

I've made a major update to an app, and I want a 'fresh start' with all files replaced.

Thanks for any ideas!

Chris

EDIT: I guess in the end, what I wanted to do was delete the app's own standard user defaults without having the the new version of the app do it as a matter of housekeeping. Now I know how updates actually work.

2

There are 2 best solutions below

3
On

There are 3 possible situation:

  1. You added a new file.
  2. You deleted a file.
  3. You changed a file.
  4. You have a file that needs to be reset. (Like a SQLite file)

Don't worry about 1-3 apple will take care of those.

For case 4 however, you need to write some code to clear/reset those files first time it loads and then set a flag somewhere (User defaults may be) to make sure you are resetting the file every single load.

If you have any assets/files that won't match any of the above let me know.

0
On

Make a modification to every file. One that is significant, and more than just a metadata change. Or you could rename everything, thus the update would see everything as removed, and then an entirely new set added.

It's not clear why you want to do this though. There isn't any benefit to downloading a file that hasn't changed.