iOS binding library for .NET MAUI

692 views Asked by At

I have a .NET MAUI app which needs to use native iOS and Android libraries. I created the Android binding library without any issue.

When trying to create the iOS binding library, However, after the binding library project to MAUI App, I found that the project structure is a bit different than Xamarin.Forms: There is no "Native Library" option under Frameworks (net8.0-ios).

Thus after some R&D, I had manually copy and paste some code in MAUI Proj file. Screen shot attached.

After all this affords, My Code works fine in MAC Machine But iOS project doesnot work in Windows Environments.

Please someone guide which addition configuration/code I have to write to resolve this issue? Any help is greatly appreciated! I use Visual Studio 2022 Latest update Nov-2023.

Some Screen shots attached as reference.

Error

enter image description here


enter image description here




iOS Code

0

There are 0 answers