Import LocalAuthentification.framework crashes on iOS 7.1
问题 Have a problem with usage of LocalAuthentication and support iOS 7.0 when I'm trying to import LocalAuthentication I'm getting crash if target iOS version is less than 8.0. I tried to mark LocalAuthentication.framework as optional in the build phases and check class availability by calling: var isTouchIDSupported: Bool { if let contextClass: AnyClass = NSClassFromString("LAContext") { return LAContext().canEvaluatePolicy(.DeviceOwnerAuthenticationWithBiometrics, error: nil) } return false }