Coding Swift - Using common SQLite database as persistent container. Using common SQLite database as persistent container with Xcode 8.3 and Swift 3.1. lazy var persistentContainer: NSPersistentContainer = { let sqlitePath = Bundle.main.url(forResource: "DATABASE_NAME", withExtension: "sqlite") if