возвращает пустые результаты ...

у скопировать предварительно загруженный файл области, поэтому я делаю:

Скопировал мой файл в навигатор проекта с именемdefault.realm, Затем проверьте, еслиfileExists::

let bundlePath = Bundle.main.path(forResource: "default", ofType: "realm")
let destPath = Realm.Configuration.defaultConfiguration.fileURL?.path
let fileManager = FileManager.default
if fileManager.fileExists(atPath: destPath!) {
    //File exist, do nothing
    print("File exist")
} else {
    do {
        //Copy file from bundle to Realm default path
        try fileManager.copyItem(atPath: bundlePath!, toPath: destPath!)
        print("Copied")
    } catch {
        print("\n",error)
    }
}

И он всегда возвращает true, поэтому я не могу скопировать файл своей области.

Ответы на вопрос(1)

Ваш ответ на вопрос