BlinkID / blinkid-xamarin

ID scanning SDK, wrapped for cross-platform apps built with Xamarin.
https://microblink.com/blinkid
50 stars 24 forks source link

Xamarin.iOS Getting exception when going to build(System.IntPtr ObjCRuntime.NativeObjectExtensions::GetNonNullHandle(ObjCRuntime.INativeObject,System.String)', referenced from the method 'System.Void ) #68

Open TrueTech-Source opened 2 years ago

TrueTech-Source commented 2 years ago

/Users/yasir/Downloads/blinkid-xamarin-master/Samples/iOS/MTOUCH: Error MT2101: Can't resolve the reference 'System.IntPtr ObjCRuntime.NativeObjectExtensions::GetNonNullHandle(ObjCRuntime.INativeObject,System.String)', referenced from the method 'System.Void BlinkID.MBBlinkIdOverlayViewControllerDelegateWrapper::BlinkIdOverlayViewControllerDidFinishScanning(BlinkID.MBBlinkIdOverlayViewController,BlinkID.MBRecognizerResultState)' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. (MT2101) (BlinkIDSample)

anjapenic commented 2 years ago

Hello @TrueTech-Source,

Which SDK version are you using? Could you give us a bit more info on the process of how you implemented the plugin in your project?

Best regards, Anja

TrueTech-Source commented 2 years ago

Hello @TrueTech-Source,

Which SDK version are you using? Could you give us a bit more info on the process of how you implemented the plugin in your project?

Screenshot 2022-04-19 at 2 12 45 AM

Best regards, Anja

TrueTech-Source commented 2 years ago

I have also change link behaviour like SDK framework onle ,All Link ,and dont link still not working

TrueTech-Source commented 2 years ago
Screenshot 2022-04-23 at 12 56 19 AM

`

mparadina commented 2 years ago

Hi @TrueTech-Source

Are you still experiencing issues when trying to build the project? If yes, in the 'iOS Build' settings, which are entered in the 'Properties' of your iOS project, you can place:

  1. 'Linker Behaviour' to be 'Link Frameworks SDKs Only'
  2. 'Supported Arhitectures', you need to place the architectures which are not related to simulators as we do not have support for iOS simulators. Here, you can place 'ARM64' (as you did in the first screenshot).
  3. In the 'Additional mtouch arguments', can you add '--linkskip=MicroBlink', as mentioned here.

Lastly, make sure that you're using the latest version of the SDK.