I'm doing this tutorial and there they use pod 'RealmSwift', '~> 0.98'
. But when I try to open the default.realm
file with the Realm Browser Version 2.0.0 (78)
. There is always the alert
'default.realm' is at an older file format version and must be upgraded before it can be opened. Would you like to proceed?
So I tried to use the latest version of RealmSwift. Even with using the latest version, the message appears.
When I proceed and upgrade the file, I can open it and see also the records. But the problem is, when I close the realm browser after this and start the app again, an error appears
fatal error: 'try!' expression unexpectedly raised an error: ... "Unable to open a realm at path ... Unsupported Realm file format version."
Note: As in the tutorial mentioned, they use try! instead of try and do/catch for simplifying
So how can I open the realm file with or without upgrading it and still have an working app after accessing the file again with app?
Searched for other solutions on SO, but didn't find one so far.
Unable to open realm at...
. I didn't checked the Cocoapod first, but it's 1.0.1 @BHendricks – ronatory