realm-swift: File not found exception with realm 1.0
Goals
I want to update Realm to the newest version
Expected Results
My app to keep working
Actual Results
I get an exception saying that it is missing a file. This is a new install, so no upgrade of existing app
libc++abi.dylib: terminating with uncaught exception of type realm::util::File::NotFound: open(“/Users/alexlehmberg/Library/Developer/CoreSimulator/Devices/8AAB1BCB-5AA3-42A0-9A59-8F4044453EDB/data/Containers/Data/Application/9946D426-A615-48CD-A576-853CBA86D762/Documents/Realm/default.realm.management/log_access”) failed: No such file or directory
Next time I run the app it works fine and the files that it complains about are there
Steps to Reproduce
I am setting up realm to use a specific directory which worked with the previous version:
var config = Realm.Configuration()
let path = CTFileManager.sharedFileManager().realmPath as NSString
config.fileURL = NSURL(fileURLWithPath: path.stringByAppendingPathComponent("default.realm"))
// Set this as the configuration used for the default Realm
Realm.Configuration.defaultConfiguration = config

Code Sample
Version of Realm and Tooling
In the CONTRIBUTING guidelines, you will find a script, which will help determining these versions.
Realm version: 1.0
Xcode version: 7.3.1
iOS/OSX version: 9
Dependency manager + version: ?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 23 (8 by maintainers)
Sorry, I’m still looking into this. I hope to have more to share soon.