I am saving password in keychain using KeychainItemWrapper and my code crashing exactly on getEncryptedStoreOptionsWithPassword:currentPassword method ,App is live and I am not able to reproduce the crash , but on crashlytics it is showing so many crash
When using a
addPersistentStoreWithType
method , we can passoptions
dictionary for basic configuration . Creation of Dictionary method are as follows- (NSDictionary*)getEncryptedStoreOptionsWithPassword:(NSString*)password andDatabaseStore:(NSURL*)storeUrl { return @{ EncryptedStorePassphraseKey: password, EncryptedStoreDatabaseLocation: storeUrl, NSMigratePersistentStoresAutomaticallyOption:@YES, NSInferMappingModelAutomaticallyOption:@YES }; }
When creating a
persistentStoreCoordinator
, calling code look like thisNSString *currentPassword = [[VJAesCryptoWrapper getInstance] getCurrentPassword];
NSDictionary *options = [self getEncryptedStoreOptionsWithPassword:currentPassword andDatabaseStore:newStoreURL];
I am saving password in keychain using
KeychainItemWrapper
and my code crashing exactly ongetEncryptedStoreOptionsWithPassword:currentPassword
method ,App is live and I am not able to reproduce the crash , but on crashlytics it is showing so many crashcrashlytics crash logs image
Can someone help or point out something , Is this a problem with encrypted core data or have some issue in keychain .