mirror of
https://github.com/zhigang1992/UICKeyChainStore.git
synced 2026-06-19 03:26:58 +08:00
Bug Fix : Add AccessGroup key/value when adding a new item.
This commit is contained in:
@@ -135,6 +135,11 @@ static NSString *defaultService;
|
||||
[attributes setObject:key forKey:kSecAttrGeneric];
|
||||
[attributes setObject:key forKey:kSecAttrAccount];
|
||||
[attributes setObject:data forKey:kSecValueData];
|
||||
#if !TARGET_IPHONE_SIMULATOR
|
||||
if (accessGroup) {
|
||||
[attributes setObject:accessGroup forKey:kSecAttrAccessGroup];
|
||||
}
|
||||
#endif
|
||||
|
||||
status = SecItemAdd((CFDictionaryRef)attributes, NULL);
|
||||
if (status != errSecSuccess) {
|
||||
|
||||
Reference in New Issue
Block a user