Any possibility of directory change when update app?

Recently, updated my app v1.0 to v1.0.1. Then one of our tester said

'Lost all pictures that saved in app' (not photo library)

I found that installing the App with Xcode and updating the AppStore version on the device will change the App's directory, so data will be lost. (But not all data. Some files are copied, in my case .db files. that's really odd)

ex)

/var/mobile/Applications/D108B86A-27A8-4665-A490-F1CBB94CE04A/Documents/ /var/mobile/Applications/CCCD0C25-C33E-498F-8D24-9AF243E01A21/Documents/

But it isn't normal process, maybe it causes problem.

Is there any possibility of directory change in normal process?(Install from appstore then update from appstore)

I wanna try 'Normal process' but there's no device that have old ver. So can't make appear 'Update' button in appstore again :(

Answers


I found that updating app causes directory changed.

So should not save 'Full Path' at Database or file.


I had the same problem: ad-hoc version of app can't upgrade to appstore version. It just removes ad-hoc and installs app store. But during normal update process app store -> app store it replaces only app package so all should work OK.


Need Your Help

How do I split flat file data and load into parent-child tables in database?

sql-server sql-server-2008 import ssis etl

I have denormalized data (coming from a file) that needs to be imported into parent-child tables. The source data is something like this: