Skip to content

Commit

Permalink
Fix for Xcode 7 beta 4
Browse files Browse the repository at this point in the history
  • Loading branch information
kishikawakatsumi committed Jul 22, 2015
1 parent 0d9ae1d commit 7879a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/KeychainAccess/Keychain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ public class Keychain {
#if os(iOS)
@available(iOS, introduced=8.0)
public class func generatePassword() -> String {
return SecCreateSharedWebCredentialPassword().takeUnretainedValue() as String
return SecCreateSharedWebCredentialPassword() as! String
}
#endif

Expand Down Expand Up @@ -916,7 +916,7 @@ extension Options {
let message = Status.UnexpectedError.description
return (attributes, NSError(domain: KeychainAccessErrorDomain, code: Int(Status.UnexpectedError.rawValue), userInfo: [NSLocalizedDescriptionKey: message]))
}
attributes[kSecAttrAccessControl as String] = accessControl.takeUnretainedValue()
attributes[kSecAttrAccessControl as String] = accessControl
} else {
print("Unavailable 'Touch ID integration' on OS X versions prior to 10.10.")
}
Expand Down

0 comments on commit 7879a49

Please sign in to comment.