TouchID crash on some iPhone 5S devices

我的梦境 提交于 2019-12-10 02:30:10

问题


My app crashes on some iPhone 5S device (only some) with the error:

Fatal Exception: NSInternalInconsistencyException Unexpected error: Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be completed. (Cocoa error 4097.)" (connection to service named com.apple.CoreAuthentication.daemon) UserInfo=0x174461dc0 {NSDebugDescription=connection to service named com.apple.CoreAuthentication.daemon}

The line which breaks the app is the following:

LAContext().canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: nil)

Is this an Apple bug? What am I doing wrong here?


回答1:


It's an iOS bug. When an API returns a 4097 error, it usually means that the system daemon that was responsible for handling your request crashed. You can look for crash logs from the device and file a bug with Apple.



来源:https://stackoverflow.com/questions/27522482/touchid-crash-on-some-iphone-5s-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!