How to create the required Obj-c library for MonoMac from the framework

For my project, I need to interact with a device on a Mac. The constructor provides me with an objective-c structure: header file + binary without extension I would like to create a binding library from this structure for MonoMac.

I read the abstracts of articles on binding Obj-C libraries to MonoTouch:

... but I cannot find the same project binding template for MonoMac.

I used the Sharpie provided by Xamarin to generate my Mac OS API definition as a target, so this is normal for this point of view.

I think I need to rename the binary frame file as libXXXXX.a, as for MonoTouch, as the articles said.

So now I am looking for a kind of binding project template for MonoMac to generate my Mac OS DLL.

By the way, I managed to create a dll binding for MonoTouch from my Mac OS infrastructure and refer to it in the main iOS application for testing. But, as expected, at runtime I am sure of the error. Mac OS framework probably doesn't work with iOS, I can figure it out.

Thank you for your help.

+4
source share

Source: https://habr.com/ru/post/1489234/


All Articles