I had this problem today, after much spelunking through EncryptedStore.m with log statements I discovered it was failing to create a new database because I had added an entity with index as an attribute name.
Turns out you're not allowed to use index as an attribute name.
I found my problem inside the loadMetadata: function in EncryptedStore.m so maybe start there if you haven't solved it yet.