Always getting "Error trying to access to non available kSecUseOperationPrompt in iOS7" log
adriana-elizondo opened this issue · comments
I'm trying to use this on ios 7 and 8, so if I'm not using user access control and kSecUseOperationPrompt either, but I'm always getting this error log in the query.
Shouldnt it be like this? :
-
(NSDictionary *)queryFetchOneByKey:(NSString *)key message:(NSString *)message {
NSMutableDictionary *query = [self baseQuery];
[query addEntriesFromDictionary:@{
(__bridge id)kSecReturnData: @yES,
(__bridge id)kSecMatchLimit: (__bridge id)kSecMatchLimitOne,
(__bridge id)kSecAttrAccount: key,
}];if TARGET_OS_IPHONE
if (message) {
if (self.useAccessControl && floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_7_1) {
query[(__bridge id)kSecUseOperationPrompt] = message;
} else {
NSLog(@"Error trying to access to non available kSecUseOperationPrompt in iOS7");
}
}endif
return query;
}
Already discussed here 71784e3#commitcomment-14692321
This is not an error, but log is confusing. I suggest it should be removed.
Sorry didn't see it, Thanks!