New article — Migrating Your iOS App's Realm Schema in Production

Murphy’s law dictates that as soon as your mobile app goes live, you’ll receive a request to add a new feature. Then another. Then another.

This is fine if these features don’t require any changes to your data schema. But, that isn’t always the case.

Fortunately, Realm has built-in functionality to make schema migration easier.

I’ve just published a tutorial — Migrating Your iOS App’s Realm Schema in Production — to step you through updating an existing mobile app to add some new features that require changes to the schema. In particular, I look at the Realm migration code that ensures that no existing data is lost when the new app versions are rolled out to your production users.

1 Like