Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doubt about load initial data on Ipad. #572

Closed
mcezzare opened this issue Dec 19, 2019 · 1 comment
Closed

Doubt about load initial data on Ipad. #572

mcezzare opened this issue Dec 19, 2019 · 1 comment

Comments

@mcezzare
Copy link

Hy, in first, thanks for the great Job. Great library to work with CoreData.
I have an app that loads initial data from local json installed with bundle, and at ipods and iphones work perfectly with the following code
called in AppDelegate

self.dataStack.sync(json, inEntityNamed: NameOfEntity.entity().name!) { error in
                completion(.success)
            }

But on Ipad on load initial data it crashes.

2019-12-19 13:36:33.296908-0300 APPNAME[367:13694] [error] error: No NSEntityDescriptions in any model claim the NSManagedObject subclass 'NameOfEntity' so +entity is confused. Have you loaded your NSManagedObjectModel yet ?
CoreData: error: No NSEntityDescriptions in any model claim the NSManagedObject subclass 'NameOfEntity' so +entity is confused. Have you loaded your NSManagedObjectModel yet ?

Is there any way to check if the model is already installed before perform the sync operation ?

Thanks

@3lvis
Copy link
Owner

3lvis commented Feb 11, 2020

Thanks for your support in this library. It has been a while since I used CoreData in any of my projects and it's hard for me to maintain this library. If you have been part of the Sync contributors group and want to take ownership of the library let me know to [email protected]. For now, I'll be archiving this library.

@3lvis 3lvis closed this as completed Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants