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 Reply
  • Hi,

    I am afraid there is little more we can do. The library was written for use with Cocoapods (Swift), and we also provide instructions for Objective C. If you choose to create bindings for use with other languages or systems then I am afraid you are on your own.

    Most likely you will find a solution if you go through the support channels of Xamarin, Sharpie, etc. If they can point out an error in our library then we will register a bug report and try to fix it, but as far as we can tell this seems to be a problem with the porting and not with the library itself.

    Regards,
    Terje

Children
No Data
Related