Search code examples
xamarinxamarin.formsxamarin.androidxamarin.ios

Getting an error while using Microsoft.AppCenter with Xamarin.iOS


I am trying to use Microsoft.AppCenter nuget to a Xamarin app. Xamarin.Android is building fine. But I am getting an error while trying to build the Xamarin.iOS app.

MTOUCH: Error MT5210: Native linking failed, undefined symbol: _kMSLongTypedPropertyType. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.

I have tried the solution mentioned in the below link https://learn.microsoft.com/en-us/xamarin/ios/troubleshooting/mtouch-errors#MT5210

But I am still getting the error while I am trying to build Xamarin.iOS app. I am using the below configurations:

  • Visual Studio Community 2019 for Mac
  • Version 8.4.4 (build 91)
  • Xamarin.iOS
  • Version: 13.10.0.17 (Visual Studio Community)

Solution

  • The issue got fixed after installing Microsoft.AppCenter.Analytics and Microsoft.AppCenter.Crashes. As @Junior Jiang - MSFT mentioned, if code uses microsoft app center to get the analytics and crashes, we need to install these two nugets along with Microsoft.AppCenter. Thanks.