Skip to content

Instantly share code, notes, and snippets.

@FARUK-YILDIRIM
Last active February 1, 2022 12:13
Show Gist options
  • Select an option

  • Save FARUK-YILDIRIM/c5c22e5762dbe83059df1d41bb70a5ed to your computer and use it in GitHub Desktop.

Select an option

Save FARUK-YILDIRIM/c5c22e5762dbe83059df1d41bb70a5ed to your computer and use it in GitHub Desktop.
Finding the path to the Realm Database file
import RealmSwift
print("DEBUG: \(Realm.Configuration.defaultConfiguration.fileURL)")
// DEBUG: Optional(file:///Users/farukyildirim/Library/Developer/CoreSimulator/Devices/DB27F964-1D6E-4F65-917D-2E812EB2E92A/data/Containers/Data/Application/AA51CF8D-3B4A-4E2D-A1E4-5666CF6B53FD/Documents/default.realm)
@FARUK-YILDIRIM
Copy link
Author

I generally using AppDelegate -> didFinishLaunchingWithOptions while development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment