I am trying to do some work on my keychain and am following this tutorial here Unfortunately I am getting the following error where it talks about searching the keychain
Cast of an indirect pointer to an Objective-C pointer to 'CFTypeRef *' (aka 'const void **') is disallowed with ARC
This is what the code looks like
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)searchDictionary,(CFTypeRef *)&result);
Any help providing the correct code on how to cast indirect pointer would be greatly appreciated.
Use void * instead:
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)searchDictionary,(void *)&result);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With