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.
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.
No updates on this?
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.
Yes. I've seen this other ticket. And there is no resolution for this issue.I'm using 11.2 and latest version of Sharpie.The creator of the ticket also said he has the header files with a lot of junk in it.
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.