我的应用程序在某些iPhone 5S设备上崩溃(仅限于某些设备),并显示以下错误信息:
致命异常:NSInternalInconsistencyException
意外错误: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}
导致应用程序崩溃的代码行如下:
致命异常:NSInternalInconsistencyException
意外错误: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}
导致应用程序崩溃的代码行如下:
LAContext().canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: nil)
这是一个苹果的bug吗? 我在这里做错了什么?