Error when Updating data model

So lets say my data model is the following:

class example: Object {
var alreadyHere = ""
var beingAdded = ""
}


Note: I am using Realm


Recently I added "beingAdded" to my code.

When I run the simulator I get the error "Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm"


I know the way to fix this is to delete the app and reinstall.


However I want to know if this error will show up to users who have already downloaded my app from the app store when they update. (Yes, app is already live)

I don't want my users to have to reinstall the app and loose their data.


Thanks to all help!

Accepted Reply

could you use try? Instead of try!


that would probably let you avoid the crash.

Replies

could you use try? Instead of try!


that would probably let you avoid the crash.