Unsolved ios app ,after update, load file failed
I save a file In the application sandbox ，under Documents directory。when my application start， it read the file successfully。but after update from app store， it read failed。it becomes to create a new file。I confused， why the file was not backed up，what i did wrong?
How are you getting the path for your file to be saved ?
I tried 2 ways.
at first，I user this way。
m_Path = QStandardPaths::standardLocations(QStandardPaths::DataLocation).value(0);
m_Path = m_Path + "/myAppName";
when I find this problem，I change to another
m_Path = QDir::homePath() + "/Documents" + "/myAppName";
When you say you update from the app store, do you mean through TestFlight or is your application already released ?
my application is already released
thanks for you reply!
can you help me to see another problem what confused me a long time
AFAIK, the files under Documents should be migrated to the new app version.
Out of curiosity, why are you using your application name for that file ?
using my application name for that file just for example，I can change to another name，may be I need to commit at least twice in the next time to verify this way。