Issue Registering Managed Types with the Same Native Name in Xamarin Forms App

B Bindiya Rathod 7 months ago
31 0 0

Hello Zebra Forum Community,

I hope you are all doing well. I am currently facing an issue while working on a Xamarin Forms application that integrates two Zebra scanners: DS2278 and RFD8500. The application was initially developed for Android, and it's working as expected. However, we are now in the process of implementing it for iOS.

Here's a brief overview of the libraries and components we are using for both platforms:

  • For Android:

    1. RFD8500: XamarinZebraRFID.dll
    2. DS2278: ZebraAndroidScannerLibrary.dll, ZebraBarcodeScannerSDK.dll
  • For iOS:

    1. RFD8500: ZebraRfidIntegratedSdk.dll
    2. DS2278: ZebraBarcodeNativeLibrary.dll, ZebraBarcodeScannerSDK.dll

To facilitate the development, we have created a shared project for barcode handling and added references to the necessary libraries in the iOS project. However, we've encountered a significant issue that we need assistance with.

Issue Description: Upon integrating the iOS libraries and attempting to build the iOS version of the app, we encountered the following error:
 "error MT4118: Cannot register two managed types 'ZebraRfidIntegratedSdk.FirmwareUpdateEvent, ZebraRfidIntegratedSdk' 
'Symbolbtscannersdk.FirmwareUpdateEvent, ZebraBarcodeNativeLibrary') with the same native name ('FirmwareUpdateEvent')."

This error seems to be related to a conflict between managed types with the same native name. We are seeking guidance on how to resolve this conflict and successfully integrate both Zebra scanners into our Xamarin Forms app for iOS.

Any insights, suggestions, or solutions you can provide would be greatly appreciated.

Best regards,
Bindiya Rathod

CONTACT
Can’t find what you’re looking for?