SelfLender / react-native-biometrics

React Native module for iOS and Android biometrics
MIT License
663 stars 224 forks source link

iOS Crash #42

Open patrikwork1 opened 5 years ago

patrikwork1 commented 5 years ago

Hey,

I am getting a crash on iOS with an error Thread: signal SIGABRT. Basically a thread that runs the package crashes. My app works on android. I am running the package on react-native 0.59.8.

Here is my stack trace.

( 0 CoreFoundation 0x0000000115ebc1bb exceptionPreprocess + 331 1 libobjc.A.dylib 0x0000000114fe6735 objc_exception_throw + 48 2 CoreFoundation 0x0000000115ebc015 +[NSException raise:format:] + 197 3 LocalAuthentication 0x0000000117092a08 50-[LAContext evaluatePolicy:localizedReason:reply:]_block_invoke + 113 4 LocalAuthentication 0x0000000117092c56 __50-[LAContext evaluatePolicy:localizedReason:reply:]_block_invoke.108 + 16 5 libsystem_trace.dylib 0x000000011774d742 _os_activity_initiate_impl + 53 6 LocalAuthentication 0x000000011709290b -[LAContext evaluatePolicy:localizedReason:reply:] + 307 7 RentProfile 0x000000010f0f560a __56-[ReactNativeBiometrics simplePrompt:resolver:rejecter:]_block_invoke + 182 8 libdispatch.dylib 0x0000000117454595 _dispatch_call_block_and_release + 12 9 libdispatch.dylib 0x0000000117455602 _dispatch_client_callout + 8 10 libdispatch.dylib 0x0000000117458064 _dispatch_queue_override_invoke + 1028 11 libdispatch.dylib 0x000000011746600a _dispatch_root_queue_drain + 351 12 libdispatch.dylib 0x00000001174669af _dispatch_worker_thread2 + 130 13 libsystem_pthread.dylib 0x000000011783e6b3 _pthread_wqthread + 583 14 libsystem_pthread.dylib 0x000000011783e3fd start_wqthread + 13 )

Would appreciate some help with this.

NappyPirate commented 4 years ago

Is this still occuring?

divanshujain commented 4 years ago

Any Updates ? It is still occurring for me.

marcosvaz commented 4 years ago

It is still occurring for me too.

donald-slagle commented 4 years ago

Has anyone found a solution? I'm getting the same problem. The app crashes only on iOS when calling createSignature.

LuisArturoMR commented 3 years ago

I had the same error because I forgot to add the permissions to the info.plist

<key>NSFaceIDUsageDescription</key>
<string>Text explains why you need the FaceID</string>

Hope this helps you!

tamlyn commented 1 year ago

I had this error despite having set NSFaceIDUsageDescription. Turned out I was passing an empty string as the promptMessage which is allowed by the TypeScript types, but causes iOS to crash.

biometrics.simplePrompt({
  promptMessage: "" // <-- this was the problem
});