{
ns dictionary * query =[ns dictionary dictionaryWithObjectsAndKeys:
?kSecClassGenericPassword,kSecClass,
?@"bundleSeedID ",kSecAttrAccount,
?@ " ",kSecAttrService,
?(id)kcfbooleantrule,kSecReturnAttributes
?nil];
CFDictionaryRef結果= nil
OS status status = SecItemCopyMatching((CFDictionaryRef)查詢,(cf typeref *)& amp;結果);
if (status == errSecItemNotFound)
status = SecItemAdd((CFDictionaryRef)查詢,(cf typeref *)& amp;結果);
如果(狀態!= errSecSuccess)
返回nil
ns string * access group =[(ns dictionary *)result objectForKey:kSecAttrAccessGroup];
ns array * components =[access group components separated bystring:@"。];
ns string * bundleSeedID =[[components object enumerator]next object];
CFRelease(結果);
返回bundleSeedID
}