I work with CoreData and need to backup/sync entire database to cloud server. The main CoreData is work well to show data in each view.
But when I backup sqlite file to cloud server, then download sqlite file to another local location in iPhone, then I load NSPersistentContainer for this sqlite database file. Xcode shows "error: A fetch request must have an entity."
Note: I'm sure that one NSPersistentContainer is load one sqlite file, two NSPersistentContainer is not point to the same file. Note2: This concept is work well in previous version of swift, but now I try to implement this concept with SwiftUI.
Please suggest me for some ideas and/or solutions.