2017-10-25 7 views

答えて

0

すべてのキーチェーンアイテムを共有するようにする前に、 "accessGroup"は(AppIdentifierPrefix).bundleIdentifierで、(AppIdentifierPrefix).keyChainGroupNameをオンにした後に変更されます。

回避策は、すべてのキーチェーンアイテムをキーチェーンでアクセスして削除することです。

AWSUICKeyChainStore *keychain = [AWSUICKeyChainStore keyChainStoreWithService:@"ServiceName"]; 
for (NSDictionary *dictionary in keychain.allItems) 
    if ([dictionary[@"accessGroup"] isEqualToString:"(AppIdentifierPrefix).bundleIdentifier"]) 
     [keychain removeItemForKey:dictionary[@"key"]]; 
関連する問題