草庐IT

biometryType

全部标签

ios - [LAContext biometryType] : unrecognized selector on iOS 11. 0.0

我在fabric中看到了数十次崩溃FatalException:NSInvalidArgumentException-[LAContextbiometryType]:unrecognizedselectorsenttoinstance0x1c066aa00这很奇怪,因为我只在iOS11+的LAContext上调用了biometryType。代码:privatestaticvarbiometryType:BiometryType?{letcontext=LAContext()guardcontext.canEvaluatePolicy(.deviceOwnerAuthentication

ios - [LAContext biometryType] : unrecognized selector on iOS 11. 0.0

我在fabric中看到了数十次崩溃FatalException:NSInvalidArgumentException-[LAContextbiometryType]:unrecognizedselectorsenttoinstance0x1c066aa00这很奇怪,因为我只在iOS11+的LAContext上调用了biometryType。代码:privatestaticvarbiometryType:BiometryType?{letcontext=LAContext()guardcontext.canEvaluatePolicy(.deviceOwnerAuthentication

ios - LAContext().biometryType 在 iPhone X 上返回 .none

我遇到了CoreAuthentication的问题。我已按照文档要求调用了canEvaluatePolicy:error:,但结果始终是.none。fileprivateletbiometricsType:SecurityBiometrics={varerror:NSError?letevaluated=LAContext().canEvaluatePolicy(LAPolicy.deviceOwnerAuthenticationWithBiometrics,error:&error)if#available(iOS11.0,*){ifLAContext().biometryType=