Xamarin ios binding library cannot be referenced

Wei Wen 1,126 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.

Developer technologies | .NET | Xamarin
Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wei Wen 1,126 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.