smstuebe / xamarin-fingerprint

Xamarin and MvvMCross plugin for authenticate a user via fingerprint sensor
Microsoft Public License
490 stars 115 forks source link

Fingerprint plugin crashes on iOS 7: _Wrapper type 'LocalAuthentication.LAContext' is missing its native ObjectiveC class 'LAContext'._ #40

Closed nielscup closed 7 years ago

nielscup commented 7 years ago

Fingerprint plugin crashes on iOS 7: Wrapper type 'LocalAuthentication.LAContext' is missing its native ObjectiveC class 'LAContext'.

Steps to reproduce

  1. Start app using Fingerprint plugin 1.4.0 on iOS7

Expected behavior

App starts normally

Actual behavior

App crashes

Crashlog

Wrapper type 'LocalAuthentication.LAContext' is missing its native ObjectiveC class 'LAContext'.

at Registrar.DynamicRegistrar.OnRegisterType (Registrar.Registrar+ObjCType type) [0x00113] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/src/ObjCRuntime/DynamicRegistrar.cs:796 at Registrar.Registrar.RegisterTypeUnsafe (System.Type type, System.Collections.Generic.List1[System.Exception]& exceptions) [0x010b5] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/src/ObjCRuntime/Registrar.cs:1890 at Registrar.Registrar.RegisterType (System.Type type, System.Collections.Generic.List1[System.Exception]& exceptions) [0x00011] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/src/ObjCRuntime/Registrar.cs:1064 at Registrar.DynamicRegistrar.Register (System.Type type) [0x00002] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/src/ObjCRuntime/DynamicRegistrar.cs:1138 at ObjCRuntime.Class.Register (System.Type type) [0x00000] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/src/ObjCRuntime/Class.cs:161 at ObjCRuntime.Class.GetHandle (System.Type type) [0x00000] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/src/ObjCRuntime/Class.cs:129 at Plugin.Fingerprint.FingerprintImplementation.CreateLaContext () [0x00001] in <0ce2e501fec54f098d84537f3088c448>:0 at Plugin.Fingerprint.FingerprintImplementation..ctor () [0x00008] in <0ce2e501fec54f098d84537f3088c448>:0 at Plugin.Fingerprint.CrossFingerprint.CreateFingerprint () [0x00001] in <0ce2e501fec54f098d84537f3088c448>:0 at System.Lazy`1[T].CreateValue () [0x00075] in <15e850188d9f425bbeae90f0bbc51e17>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 at System.Runtime.CompilerServices.AsyncMethodBuilderCore.m__0 (System.Object state) [0x00000] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018 at UIKit.UIKitSynchronizationContext+cAnonStorey0.<>m0 () [0x00000] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/src/UIKit/UIKitSynchronizationContext.cs:24 at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/src/Foundation/NSAction.cs:163 at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/src/UIKit/UIApplication.cs:79 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/src/UIKit/UIApplication.cs:63

Configuration

**Version of the Plugin: 1.4.0

**Platform: iOS7

**Device: any with iOS7

smsissuechecker commented 7 years ago

Hi @nielscup,

I'm the friendly issue checker. It seems like (37.50 %) you haven't used our issue template :cry: I think it is very frustrating for the repository owners, if you ignore them.

If you think it's fine to make an exception, just ignore this message. But if you think it was a mistake to delete the template, please close the issue and create a new one.

Thanks!

smstuebe commented 7 years ago

Oupsi it's back. Thanks. I'll check it this week.

nielscup commented 7 years ago

You're welcome! I have created a pull request.

smstuebe commented 7 years ago

@nielscup I've commented the pull request with a minor suggestion / request :)

smstuebe commented 7 years ago

is included in 1.4.1 Sorry that you have to fix the same bug twice :flushed:

nielscup commented 7 years ago

Haha, no problem, apparently I am the only sucker who still supports iOS7!

smstuebe commented 7 years ago

@nielscup: Just out of curiosity: Do you test it automatically or manually?

nielscup commented 7 years ago

Manually.