Forum Xamarin.Mac

NetworkInterface.GetAllNetworkInterfaces() returns an empty array on Mojave when notarized

Guy.GodinGuy.Godin USMember ✭✭

Similar issue as the one posted here: https://forums.xamarin.com/discussion/183073/notarization-issue

I don't have this bug on Catalina or Big Sur. Only on Mojave and only when the app is notarized, the returned array when calling NetworkInterface.GetAllNetworkInterfaces() is empty. I tried adding the various client/server networking entitlements as suggested in the other thread but it didn't help.

I am using Visual Studio for Mac 8.7.6 (build 2).

Thanks!

Answers

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    I bet you are missing a entitlement. If you are missing those, some APIs will return empty or even error.

Sign In or Register to comment.