let options: [NSObject : AnyObject] = [
EncryptedStorePassphraseKey as NSObject : myKeyString as AnyObject,
EncryptedStoreDatabaseLocation as NSObject : myModelURL as AnyObject,
NSMigratePersistentStoresAutomaticallyOption as NSObject: true as AnyObject,
NSInferMappingModelAutomaticallyOption as NSObject: true as AnyObject
]
let myEncryptedStore = EncryptedStore.make(options: options, managedObjectModel: myObjectModel)
I've verified that I'm not passing any strings in, the URL I pass is shown as a URL in the debugger.
I get Encrypted Core Data by the way of cocoapods, using
pod 'EncryptedCoreData', :git => 'https://github.com/project-imas/encrypted-core-data.git'
.I recently updated my pods, and when trying to initialize my database, it now crashes immediately.
It gives the error on this line of ECD setup:
I call it using Swift:
I've verified that I'm not passing any strings in, the URL I pass is shown as a URL in the debugger.