Application crashes on update from app store - ios

I have a app working fine and it is already submitted to app store. Now the problem comes in when the users of my app try to update the app with the latest version from the app store. The app crashes at splash screen.
If they delete the old version and make a fresh download then it does not pose any problem.
So what could be the factors causing this problem ?
Thanks in advance.

Do you use CoreData in your project?
If yes, did you make any changes to database model?
If yes, did you make new version of database model?
If you didn't create new version of database model but just modify first version then it causes crash.
-> Check there crash logs

Related

iOS Application is crashing After updating to new version and new firebasedb

happy to see you again.
I was successfully submit and update application in appstore.
here iam facing one issue while updating app from app store app is getting crash(after launch Screen).
while on fresh installation application is working good.
no crash while testing and in TestFlight.
no crash reports available from store.
here I am using firebase db.
finally it's important to inform you.
my db is different from previous version(fbdb_1) to present version(fbdb_2).
whole data is same for two db's.
Any suggestion would be helpful in my learning journey
Checking for unsaved keys in home screen, due to this app is crashing.
Updated keys and now working fine without crash.

App crashing when updating app from app store after codebase changed from titanium to Swift

My application was previously written in Titanium. Now, I have released a new version where the code is written in Swift. Now after the user updates his app to this version and starts the app, it crashes. Then it again starts running fine when the user deletes and installs the app back. What can be the best way to detect this change in the app? I have thought of a solution. I can check if some key in NSUserDefaults is set or not and delete and refresh and start again.
Maybe because titanium save something in the iOS memory-cache for inizialitze it. And then when users delete the application delete this cache too, maybe a good whay for fix this is clean the cache when inizialize your new application for first time.

Is it possible in iOS to detect if your App was updated?

Sadly, when my App is updated there is some saved data or left over logic that was already implemented. This can cause some bugs to occur. Is there a way to tell if an App was updated so I can make the user relogin? Any tips or suggestions are appreciated.
You can save the installed version in the NSUserDefaults. They will persist during app updates, so whenever your app launches you check for the saved version, compare it with the current version and do your migration if necessary. At the end, save the new version to the same key.

App crash after Appstore update

we released an update of our App to Appstore the new version works very well at the simulator and our dev devices, but if you make an update from the Appstore the App crashes on startup unless you delete it and reinstall it. You can only see the starting screen and after 1 second the app crashes. I searched the other topics about that and found that it could be the Core Data Migration, but we are using Core Data only with InMemoryStore. Is it necessary to Migrate the Database?
If you changed the data model for Core Data then you need to migrate the database. Otherwise when you attempt to use Core Data it'll crash the application. If your data model didn't change then the problem is elsewhere.

App crashes after updating it from appstore.Issue might be related to core data?

I recently updated my app with a new version in app store.My users experienced a crash after updating the app.If the user deletes the older app and downloads the app as a new app from the store the app works as desired.
The change i have done is included a new entity in my core data file for a functionality which is located in documents directory in the sandbox compared to older version.When the app is updated from the app store will the core data file be updated with new entities and properties?
In simulator if i include a new entity and run the app without removing build the app crashes and the crash gets resolved if i remove the build and run it again.
I hope this(New core data entity) is the cause for the crash when updated from the store.Could someone suggest how to overcome this.When the user updates the app, the core data file should be also updated.. How can i implement this plz help.
Thanks in advance.
If you change the database structure across version, you must add database migration logic in your code. You can't just expect app to automatically work across different database versions.
Read this stackoverflow post which gives you some useful informations.
Apple's documentation about the subject is here. A good tutorial here.

Resources