Realmdb use in macOS app

I have been trying to use the Realmdb in my macOS app that I’m building with direction from the iOS tutorial for using Realmdb. However when I use the write command and then try to open the target in the terminal, I get an error that the default.realm file doesn’t exist. Does Realm work for macOS or am I wasting my time trying. If it does, what am I missing. Using Catalina 10.15.7 and Xcode 12.4

not really sure about MacOS programming but i guess you can try and follow the realm documentation since all the info that you need is probably there. you might need to install realm first though so check that part of the documentation as well