How to use iOS dynamic framework from .NET Standard assembly in Xamarin.iOS

238 Views Asked by At

We have a class library (C++) that is compiled into a dynamic library (.dll, .so etc.) on various platforms. The dynamic library is then loaded using P/Invoke from .NET including a .NET Standard 2.1 assembly. Now, we want to do the same on iOS. My understanding is that we can compile our C++ code to an iOS .dylib, create a dynamic framework with this .dylib, and somehow consume this .dylib via the framework in the .NET Standard 2.1 assembly. Is there a way for this, or such a combination won't work?

0

There are 0 best solutions below