project-imas / encrypted-core-data

v2.0 - iOS Core Data encrypted SQLite store using SQLCipher
Other
785 stars 236 forks source link

container.loadPersistentStores not creating the database on disk #310

Closed HemDutt closed 5 years ago

HemDutt commented 5 years ago

Hi Daniel,

I am trying to create a encrypted sqlite db using core data. While the Api's allow me to create db and do insert and read operation In-memory but it does not create a persistent store.

When I use normal core data by commenting container.persistentStoreDescriptions = [desc] then it works fine.

Please review the attached source code. TestEncryptedCoreData.zip

Regards, Hem Dutt

HemDutt commented 5 years ago

Resolved. My bad.