-
Notifications
You must be signed in to change notification settings - Fork 465
Open
Description
I'm unable to read values from the Keychain when using the Swift compiler Optimization Level [Fastest -O], which is default for Release mode apps.
Seems like these lines are the problem:
var returnedData: Unmanaged<AnyObject>? = nil
let results = Int(SecItemCopyMatching(query, &returnedData))
Possible solution:
http://stackoverflow.com/questions/24145838/querying-ios-keychain-using-swift
var returnedData: AnyObject?
var results = withUnsafeMutablePointer(&returnedData) { SecItemCopyMatching(query, UnsafeMutablePointer($0)) }
Metadata
Metadata
Assignees
Labels
No labels