advantis
12/10/2014 - 7:24 AM

Unexpected crash

Unexpected crash

var result: Unmanaged<AnyObject>?
SecItemCopyMatching(query, &result)

// Doesn't work on 32-bit platforms (probably due to compiler bug)
return result?.takeUnretainedValue() as? NSData