Created
December 10, 2014 07:24
-
-
Save advantis/df30597c23e77be40ab5 to your computer and use it in GitHub Desktop.
Unexpected crash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var result: Unmanaged<AnyObject>? | |
SecItemCopyMatching(query, &result) | |
// Doesn't work on 32-bit platforms (probably due to compiler bug) | |
return result?.takeUnretainedValue() as? NSData |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment