How to specify an indirect pointer in Objective-C

I am trying to do some work on my keychain and follow this guide here . Unfortunately, I am getting the following error that says about searching for keychain

Cast of an indirect pointer to an Objective-C pointer to 'CFTypeRef *' (aka 'const void **') is disallowed with ARC 

This code looks like

  OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)searchDictionary,(CFTypeRef *)&result); 

Any help providing the correct code on how to specify an indirect pointer is appreciated.

+7
casting pointers ios objective-c
source share
1 answer

Use void * instead:

  OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)searchDictionary,(void *)&result); 
+22
source share

All Articles