core-datasimperium

Simperium and background NSManagedContext


I'm starting Simperium in the application launch process. All works ok until objects are saved in a context other than the one used to start the simperium instance. Should these "buckets not loaded..." errors be ignored or should I be managing the simperium instance and NSManagedObjectContexts for background threads differently? Thanks!


Solution

  • Unfortunately multiple contexts aren't yet supported. Simperium expects a single context, which clearly isn't ideal. You can track this issue on GitHub, or if you're feeling brave take a stab at adding support for it yourself (the library is open source). It'll be a little hairy though.