-
Notifications
You must be signed in to change notification settings - Fork 170
Linker Error when adding Xamarin.Firebase.iOS.RemoteConfig(4.2.1.1) to Xamarin Forms #368
Comments
Hi @DavePilks! We have released Firebase Remote Config v4.4.6. Can you update and try again, please? Thanks in advance! |
@SotoiGhost I also have the same problem, with the following packages:
The errors that I have are:
Before updating the packages and adding PerformanceMonitoring, the following packages worked:
I also have problems when trying to update the android versions, could it be a problem with the Xamarin.Build.Download package? In both platforms it works with build.download == 0.4 UPDATE: I tried installing PerformanceMonitoring 2.2.2 which doesn't update xamarin.build.download and it works |
It is not just RemoteConfig. The latest versions of Xamarin.Google.iOS.MobileAds and Xamarin.Google.iOS.SignIn also produce similar native link errors on iOS. |
Going back to the basics, I have determined that anytime Xamarin.Firebase.iOS.Core is referenced the native linker errors start to occur. Other packages introduce different linker errors as well, but I am focusing on simply trying to get core working first. I have tried the 'bin/obj' dance, deleting the cache and the .nuget folder about 50 times. Spent all weekend trying to find the right combination to no avail. I do this between each attempted compile and after each package change or update: But I cannot get rid of native link errors if I use anything greater than v5.2.0 of Xamarin.Firebase.iOS.Core. Other packages similarly have maximum versions before they suddenly cause problems. I am going to go back to the 'working' versions for now, but in 2 weeks I expect I will no longer be able to upload new versions of my App to the App Store unless this and #380 are both resolved. I have burned a ton of hours trying to get this work. It is broken. Please somebody find me the magic key to open the locked door in this adventure game!!!!! |
I am having the exact same problem with Xamarin.Firebase.iOS.Core. 33 native linking failed errors. I have a total of 70 and have yet to figure out which other nuget package is causing the rest. |
I'm also facing the same issue while updating the Xamarin.Firebase.iOS.Analytics to 6.2.1. Below are the native linking errors.
Is there any dependency version that needs to be installed in my mac machine-like XCode or SDK? |
I have a similar issue. Just updated Xamarin to and Firebase to the latest packages, and I get this error: MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: FIRRemoteConfig. The symbol 'OBJC_CLASS$_FIRRemoteConfig' could not be found in any of the libraries or frameworks linked with your application. (MT5211) I tracked the error down to a reference in FirebasePerformance:
Once I removed the FirebasePerformance library it compiled. I'm not sure what the issue is, perhaps misisng a library dependency? |
same issue |
Xamarin.iOS also have the same issue. |
Could you provide a reproducible test case? Thanks in advance! |
A little further testing on my end, I seem to be experiencing this issue with undefined symbols across a number of the Firebase iOS libraries, in particular with Firebase Analytics. What I found was that if you simply add a Firebase library without integrating it into your code, it seems that some of these objects are being removed through optimzation, and therefore causing linking errors. Once you integrate the library into your code it seems to go away. I also found that deleting the obj and lib directories, then restoring the packages seems to help in some circumstances. I don't have enough data to validate this, just going on what others have posted or recommended, and seems to have worked for me. Perhaps try this on your project and see if it works. Also just to note, currently I have only had to include ONE Firebase library, Xamarin.Firebase.iOS.Analytics, which I had downgraded to version 6.0.4.1 and it is currently compiling and working. Although NuGet specifies a number of dependency libraries for this one, I have not included them in the project and it still works. |
Facing this issue kindly update solution ....has anyone found any workaround Error MT5211: Native linking failed, undefined Objective-C class: FIRRemoteConfig. The symbol 'OBJC_CLASS$_FIRRemoteConfig' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (DMI.Xip.iOS) |
Same issue with Xamarin.Firebase.iOS.Auth Once Xamarin.Firebase.iOS.Core Version 6.6.0.0 is referenced as dependency the linker errors occur. Problem is I need to update Xamarin.Firebase.iOS.Auth due to reference of UIWebView in previous version. Due to deprecation Apple won't accept my app now. |
I had the same problem with Firebase Analytics. I removed the package and the dependencies and add the 6.0.4.1 version. It seems ok for now. |
I've spend a lot of time trying to fix this error and came up with this solution. I've added dumb reference in AppDelegate to: RemoteConfig.SharedInstance.ConfigSettings = new RemoteConfigSettings(true); This way the build will link the library and the build won't fail. |
it is working fo me, thanks |
@petar-marinov surprisingly your solution works for me too!
|
This solution is work |
This solution works for me as well. But I figured out that just declaring as variable works too: |
I just updated everything to the latest, IDE, Packages, Frameworks, all of it. The previous fixes no longer seemed to work for me. The solution I've found is to add the following to the beginning of the
|
I'm using Firebase.iOS.Analytics only and hit similar errors. But just start adding the code and it builds. No runtime error so far |
For users using Xamarin.Firebase.PerformanceMonitoring, replace the RemoteConfig line with
|
Adding |
In case of using Xamarin.Firebase.iOS.Analytics add |
This worked for me. |
Encountered this issue recently with |
I have created a new Xamarin Forms project and added the Xamarin.Firebase.iOS.RemoteConfig nuget package (version 4.2.1.1) to the iOS project.
I then add the following line to the
FinishedLaunching
method inAppDelegate
.Firebase.Core.App.Configure();
I have also added the
GoogleService-Info.plist
which was downloaded from the Firebase Console.Normally I would expect that, this simple setup to compile and run yet it produces the following linker error
I even tried adding the Xamarin.Firebase.iOS.InstanceID package but get the same error.
The text was updated successfully, but these errors were encountered: