Hi,
I basically gave up on trying to solve this issue with Realm Failed to open file at path '....default.realm.lock': Operation not permitted
So I am trying in this mode to use InMemoryIdentifier and to work on memory for this case.
I learned that in InMemory state I must hold a strong reference to the realm instance, but that’s a problem in a concurrent usage. So what can I do in this case?
I tried this:
static private let queue = DispatchQueue.init(label: "realm.queue")
static private var realm: Realm = {
return try! Realm(configuration: configuration, queue: queue)
}()`
but it crashes immediately.
Any ideas?
Thanks…!