 extension AuthenticationPolicy : RawRepresentable, CustomStringConvertible {
     
     public init?(rawValue: Int) {
-        guard #available(OSX 10.10, *) else  {
+        guard #available(OSX 10.10, iOS 8.0, *) else  {
             return nil
         }
         let flags = SecAccessControlCreateFlags.UserPresence

        
        query[kSecAttrAccount as String] = key
        #if os(iOS)
        if floor(NSFoundationVersionNumber) > floor(NSFoundationVersionNumber_iOS_7_1) {
            query[kSecUseNoAuthenticationUI as String] = kCFBooleanTrue
        }
        #endif

        case Always:
            return kSecAttrAccessibleAlways as String
        case WhenPasscodeSetThisDeviceOnly:
            if #available(OSX 10.10, iOS 8.0, *) {
                return kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly as String
            } else {
                fatalError("Unavailable 'Touch ID integration' on OS X versions prior to 10.10.")
