我像这样使用钥匙串:
KeychainItemWrapper *keychain = [[KeychainItemWrapper alloc] initWithIdentifier:@"LoginData" accessGroup:nil];
[keychain setObject:responseObject[@"TOK"] forKey:CFBridgingRelease(kSecAttrAccount)];
并希望像这样删除(null值):
[keychain setValue:nil forKey:CFBridgingRelease(kSecAttrAccount)];
但是,我只看到这个:
setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key acct.
同样明智的是,当我使用它时:
[keychain setNilValueForKey:CFBridgingRelease(kSecAttrAccount)];
我明白了:
setNilValueForKey]: could not set nil as the value for the key acct.
我正在使用苹果的 KeychainItemWrapper,我将如何正确执行此操作?