Xamarin ios binding library cannot be referenced

Wei Wen 1,096 Reputation points
2022-11-13T21:30:21.25+00:00

I created a Xamarin Forms project, and added Android and iOS binding libraries. I added the libraries by right-clicking either MyProject.Android or MyProject.iOS and select Add -> Reference. In the opened popup window, I selected Projects tab, chose the binding library, and clicked Select button. However, only the Android binding library can be referenced in MyProject.Android's classes. This issue is similar to the MAUI project I created to use binding libraries. Is this a bug in Visual Studio 2022 for Mac? The version I used is 17.4.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,859 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wei Wen 1,096 Reputation points
    2022-11-13T22:03:33.337+00:00

    I tried to remove the reference from the iOS project and then re-added it. Eventually it worked.

    0 comments No comments