diff --git a/DCKeychainItemWrapper/DCKeychainItemWrapper.m b/DCKeychainItemWrapper/DCKeychainItemWrapper.m index e7eca35..7073ddc 100755 --- a/DCKeychainItemWrapper/DCKeychainItemWrapper.m +++ b/DCKeychainItemWrapper/DCKeychainItemWrapper.m @@ -216,7 +216,7 @@ - (void)initializeData { // Default attributes for keychain item. [self.keychainItemData setObject:self.identifier forKey:(__bridge id)kSecAttrGeneric]; [self.keychainItemData setObject:self.identifier forKey:(__bridge id)kSecAttrAccount]; - [self.keychainItemData setObject:[[NSBundle mainBundle] bundleIdentifier] forKey:(__bridge id)kSecAttrService]; + [self.keychainItemData setObject:self.service forKey:(__bridge id)kSecAttrService]; [self.keychainItemData setObject:@"" forKey:(__bridge id)kSecAttrLabel]; [self.keychainItemData setObject:@"" forKey:(__bridge id)kSecAttrDescription];