-
Does MAUI / .NET Core 8 provide a simpler way to include a C++ dynamic library (.dylib) in a MAUI iOS deployment that does not require us to wrap our C++ shared library manually into an XCode Framework? If not, it would be great if .NET or MAUI provided the ability to include C++ shared libraries (a .dylib) from within Visual Studio/VSCode. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The way we solved this was by creating a swift framework in XCode for our C++ code and then by following the instructions below to call the framework from our .NET 7 MAUI based application. To ensure that Swift functionality is accessible from C# code in your .NET MAUI app, follow these steps:
Remember to thoroughly test your integration and handle any exceptions or edge cases. Swift-to-C# interop can be powerful, but it requires attention to detail. Happy coding! 🚀📱 |
Beta Was this translation helpful? Give feedback.
The way we solved this was by creating a swift framework in XCode for our C++ code and then by following the instructions below to call the framework from our .NET 7 MAUI based application.
To ensure that Swift functionality is accessible from C# code in your .NET MAUI app, follow these steps:
Verify Binding Library Configuration:
Create C# Bindings:
[Bind]
attribute to …