Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TouchID crash on some iPhone 5S devices

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?

like image 243
YogevSitton Avatar asked Dec 17 '14 09:12

YogevSitton


People also ask

How do I fix my game crash on my iPhone 5s?

1: Reboot the Device The best approach for app crashing issues is to try to force reboot the iPhone or iPad by holding down the Power button and Home button until the device flashes the Apple logo. Then let it boot back up and try to use the app again, it should work… if not keep reading on!

Why are all my Apple devices crashing?

Random and frequent app crashes in mobile devices usually denote a memory issue like when the device is running low on storage. Other performance issues including symptoms of sluggishness, unresponsiveness and random restarts are also likely to transpire in this case.

Why do my games keep crashing on my iPhone?

Update Your Apps Out-of-date iPhone apps can also cause your device to crash. Updating your iPhone apps to the latest version is simple and only takes a few minutes. Follow along below: Open the App Store app on your iPhone.

How do I find out what apps are crashing on my iPhone?

Open the Console app, from Applications > Utilities in Finder. Select Crash Reports. Locate crash reports for your app in the list. Logs are listed by your app's binary name.


1 Answers

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.

like image 187
Allan Avatar answered Sep 20 '22 23:09

Allan