Issue with nuget package Xamarin.Firebase.iOS.CloudMessaging 3.1.2

前端 未结 1 1033
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-25 05:00

I get many error messages if I install the Xamarin.Firebase.iOS.CloudMessaging 3.1.2 nuget package.

Error: linker command failed with exit code 1 (use -v

1条回答
  •  感情败类
    2021-01-25 05:17

    Well, this is a well-known issue with Firebase and Xamarin, what basically happens here is the old bin and obj files while interacting with the new data override some existing files that are needed by iOS to synthesize the IPA while deployment and hence ends up throwing linking RELATED errors, follow the below steps and it will clear this mess.

    • Clean bin and obj
    • Delete the builds in the following path of your MAC machine - ~/Library/Caches/Xamarin/mtbs/builds/ProjNAME where 'ProjName' is the name of the project you are currently working on
    • Once you are done with both the above steps add the Xamarin.Firebase.iOS.CloudMessaging package and change linker setting to Don't Link (this is for the time being)
    • After installing these packages see to it that you build your project dependency wise which means PCL'S and .Net standards first then the native iOS project.
    • Clean bin and obj again if it does not work for the first build...

    This should solve your issues in case it does not repeat the above procedure.

    EDIT

    If you check the GitHub comment by SotoiGhost here, it says adding the below line anywhere in your project should solve this issue...

    var foo = Firebase.Core.Configuration.SharedInstance;
    

    Feel free to get back in case of issues

    Good luck!

    0 讨论(0)
提交回复
热议问题