title: SFHFKeychainUtils. iOS keychain. ARC compatible
body: <p>I was wondering if anyone that was using the SFHFKeychainUtils managed to modify them to be compatible for ARC. More exactly the</p>
  
  <pre><code>NSDictionary *attributeResult = NULL;
  NSMutableDictionary *attributeQuery = [query mutableCopy];
  [attributeQuery setObject: (id) kCFBooleanTrue forKey:(__bridge id) kSecReturnAttributes];
  OSStatus status = SecItemCopyMatching((CFDictionaryRef) attributeQuery,(CFTypeRef *)(attributeResult));
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef) attributeQuery,(CFTypeRef *)(attributeResult));
  </code></pre>
  
  <p>also</p>
  
  <pre><code>CFTypeRef subAttributeResult = (CFTypeRef *)(objc_unretainedPointer(attributeResult));
  OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef) attributeQuery,(CFTypeRef *)(subAttributeResult));
  </code></pre>
  
  <p>These 2 being the only 2 approaches I managed to get no errors for. Any other approach by adding objc_XXX instead of CFTypeRef here and there gets me errors(from implicit conversions from obj-c pointer to CFTypeRef is disallowed in ARC, to passing x parameter to y parameter discards qualifiers). Obviously the first snip of code gives an error too. Although I get no errors when building, app crashes with EXC_BAD_ACCESS when reaching this part of code.</p>
  
  <p>The link for the full SFHFKeychainUtils: <a href="https://github.com/ldandersen/scifihifi-iphone/tree/master/security" rel="noreferrer">https://github.com/ldandersen/scifihifi-iphone/tree/master/security</a></p>
  
  <p>Any help, please?
  Thank you.</p>