Disable sync for an entity with Simperium for iOS

60 views Asked by At

I have an app with several CoreData entities. Most of them must be synced but I need a couple of them to be just used as local entities (no sync for them). I tried to avoid adding simperiumKey and ghostData to the entities and let them inherit from NSManagedObject instead of SPManagedObjet, but Simperium's framework crashes because it doesn't succeed to sync the entities. How can I disable sync for one or more entities?

1

There are 1 answers

3
Jorge Leandro Perez On BEST ANSWER

Your initial approach was correct:

  • Entities that need sync'ing require to inherit from `SPManagedObject
  • Entities that don't need sync'ing can inherit directly from NSManagedObject

The framework shouldn't be crashing. Can you please post the crashlog so we can troubleshoot?

Please, feel free of opening an issue directly in our GitHub repository: http://github.com/Simperium/simperium-ios

Thank you!