Forum Xamarin.Forms

Native linking failed, duplicate symbol:“_cxa+throw” when enabling the AppCenter crash and analytics

GanesanVGGanesanVG INMember ✭✭
edited December 2019 in Xamarin.Forms

I'm facing the below errors when enabling the AppCenter crash and analytics in the App.xaml.cs file like below,

protected override void OnStart()
{
   AppCenter.Start("android={my secret code};" + "ios={my secret code}", typeof(Analytics), typeof(Crashes));
}

If comment on this code, I didn't get any errors.

Native linking failed. Please review the build log. linker command failed with exit code 1 (use -v to see invocation) Duplicate symbol in: /Users/macbook-02/Library/Caches/Xamarin/mtbs/builds/MyProject.iOS/fa397694646d06672e8f8c7f7683e7fe/obj/iPhoneSimulator/Debug/mtouch-cache/AppCenterCrashes.a(MSCrashesCXXExceptionHandler.o) (Location related to previous error) Duplicate symbol in: /Users/macbook-02/Library/Caches/Xamarin/mtbs/builds/MyProject.iOS/fa397694646d06672e8f8c7f7683e7fe/obj/iPhoneSimulator/Debug/mtouch-cache/libHockeySDK.a(BITCrashCXXExceptionHandler.o) (Location related to previous error) 1 duplicate symbol for architecture x86_64
Native linking failed, duplicate symbol: ''___cxa_throw''. Native linking failed. Please review the build log.

I try to fix it by the answer given in the below links but that's not resolving my issue,

https://stackoverflow.com/questions/51178283/native-linking-failed-duplicate-symbol-main-while-adding-native-binding-dll

https://github.com/xamarin/GoogleApisForiOSComponents/issues/111

Sign In or Register to comment.