This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Xamarin DFU Library

We have been trying to create a binding library for Xamarin based on the DFU library at: https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library

So, far, we were able to extract and build the library using Carthage, but in order to use it in in a binding library for iOS, the ApiDefinition.h and struct.h files must be generated.
For that I used sharpie:

     sharpie bind -sdk iphoneos11.3 iOSDFULibrary.framework/headers/iOSDFULibrary-Swift.h

The files generated by that command (attached) are huge and have tons of errors.
Do you know of any other method to create the iOS binding library for Xamarin?

Thanks.

ApiDefinition.csStructs.cs

Parents
  • Hi,

    Is the following thread in any way relevant? DFU use in C# (Xamarin.iOS)?

    I have notified one of our iOS developers, he may or may not have some input. Other users are of course encouraged to share their knowledge on the subject as well.

    Regards,
    Terje

Reply
  • Hi,

    Is the following thread in any way relevant? DFU use in C# (Xamarin.iOS)?

    I have notified one of our iOS developers, he may or may not have some input. Other users are of course encouraged to share their knowledge on the subject as well.

    Regards,
    Terje

Children
  • The thread you posted does not have a solution.
    It seems the library has some issues to be fixed.

  • Did you try using iOS SDK 11.2 or earlier as a workaround?

  • Please see attached files below.

    Using latest Sharpie version (3.4.0) and 11.2 SDK.
    Also, tried 2 different ways::

        sharpie bind -sdk iphoneos11.2 iOSDFULibrary.framework

     and 

        sharpie bind iOSDFULibrary.framework/Headers/iOSDFULibrary-Swift.h -sdk iphoneos11.2

    Both returned errors.

  • No updates on this?

  • Hi,

    I see that there is a similar thread named DFU use in C# (Xamarin.iOS)? If that is the same issue then please keep the discussion there.

    Regards,
    Terje