# App crashed When updating 2nd version from AppStore but working fine on first download

**URL:** <https://forums.kodeco.com/t/app-crashed-when-updating-2nd-version-from-appstore-but-working-fine-on-first-download/25959>\
**Category:** iOS\
**Created:** [February 7, 2017, 7:54am UTC](https://forums.kodeco.com/t/app-crashed-when-updating-2nd-version-from-appstore-but-working-fine-on-first-download/25959 "2017-02-07T07:54:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benantony](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/benantony/32/56718_2.png) [@benantony](https://forums.kodeco.com/u/benantony)\
**Post date:** [February 7, 2017, 7:54am UTC](https://forums.kodeco.com/t/app-crashed-when-updating-2nd-version-from-appstore-but-working-fine-on-first-download/25959/1 "2017-02-07T07:54:23Z")

</div>

Hello Everyone,

I am working on the 2nd version of an ios app and it compleated sucessfully and it is published in appstore. the problem is that when the existing user update the app to 2nd version it crashed. But it is working fine when downloaded from appstore after uninstalling the older version. i am not using coredata in my app. only use NSUserDefaults. anyone know about this problem please help me.

---

<div class="post-metadata">

**Author:** ![rcasey](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rcasey/32/82229_2.png) [@rcasey](https://forums.kodeco.com/u/rcasey)\
**Post date:** [February 7, 2017, 8:20pm UTC](https://forums.kodeco.com/t/app-crashed-when-updating-2nd-version-from-appstore-but-working-fine-on-first-download/25959/2 "2017-02-07T20:20:38Z")

</div>

Did you make any changes to the items that you are storing in NSUserDefaults? If you changed the attributes of an object that you save, then reading that object in version 2 of your app will have a problem if the object has originally been saved in version 1.
