-
Notifications
You must be signed in to change notification settings - Fork 170
Failed to configure Firebase after update iOS Analytics package to 6.0.4.1 #385
Comments
Transfering this soon to iOS repo! |
@onurhazar Hey! We've had similar issue with this package. I've came up with a workaround that should get you up and running. When you try to update Xamarin.Firebase.iOS.Analytics from lower version, let's say 5.5.0 it has reference to GoogleAppMeasurement.framework in "~/Library/Caches/XamarinBuildDownload", the file is in GAppM-x.x.x, where x.x.x is a version of the Google Measurement App framework. In our case some machines had another project that was using older version of Analytics package, this meant that it was referencing GAppM-5.5.0. When we tried to deploy another project, not related to the first one, it was throwing the same exception. Because this second project was using Analytics 6.0.4, and this package depends on higher version of GAppM. It looks like maybe something is causing problems during linking of this native references(GAppM), because when there are more present in XamarinBuildDownload, the exception is thrown every time. Try the following:
Sometimes exception is gone, but the app starts and closes immediately if this would happen, clear your project, remove /bin and /obj folders, and remove application from the device or simulator and then try again. After all this, the project should start. Just make sure that in ~/Library/Caches/XamarinBuildDownload only one GAppM-x.x.x is present, that's crucial. |
@SotoiGhost |
@onurhazar @szymonkalista Can you upgrade to the most recent version of Firebase Analytics and try again? Remember to delete bin and obj folders and XBD cache. Thanks in advance! |
@SotoiGhost When I delete bin, obj and XBD cache I am able to use any version of Firebase Analytics Including the newest. The tricky part, at least for me, was finding out, that I have to delete XBD cache. The message in the exception(same as in @onurhazar case) isn't very helpful, when you are seeing something like this for the first time. I understand that it's coming from native code, so nothing can be done about it. Trying to pinpoint why we were getting this exception was very frustrating(albeit pretty rewarding :~D). Could you tell me, why do we have to delete the XBD cache in this case? It would be awesome if something could be done, so that we can use different Firebase Analytics versions without cleaning the XBD cache. If this can't be done, it would be great if this case could be documented somewhere. (Maybe it is documented somewhere? I couldn't find it.) Because getting this bit of information is crucial in this case. |
Hello @szymonkalista , I have tried your approach and the issue is still present event after all the cache deletion. Additionally, I'm using the latest versions at this point and the issue is still present. I'm wondering if there is another workaround and/or if this could be related with a "shared project" type? Due to I tried in a new project/solution on a Windows PC and there are no issues with the Google Apis components. |
Hello @szymonkalista , I have tired as same you mentioned, but the issue is still exist. I dont know why its not running in my machine. |
Hi @vhugogarcia Have you fixed your issue? Please post here, if you have new solution |
@SotoiGhost Could someone have a look at this again, please? Seems like the workaround doesn't cut it for some people. On my side - we are not experiencing this issue anymore in our projects. @padmasrisekar Would you be able to a provide sample project that reproduces this issue? I can check whether this happens on my machine while we wait for the response from the maintainers. |
Hi @szymonkalista, i will create sample project and post you. Could you confirm, which Xamarin forms version you are using. |
@padmasrisekar |
thanks @szymonkalista. Its working fine in my local machine. But it gives - native linking error in server machine. |
|
Hi @szymonkalista Thank you.. after updating xamarin.google.ios.analytics, it is working fine in server as well.
Do you know how to upload dsym for xamarin ios app.
…On Tue, Nov 10, 2020, 05:44 Szymon Kalista ***@***.***> wrote:
Xamarin.iOS
Version: 14.0.0.0 (Visual Studio Community)
Branch: xcode12
Build date: 2020-09-16 11:33:15-0400
Xcode: Version 12.1 (12A7403)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#385 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKCVWMGE47477Q2LTV7UQHLSPCAXBANCNFSM4LULZWWA>
.
|
I am still getting this Native Linking error after adding FireBase to my Xamarin.iOS with embedded XF app. I have tried all of the above workarounds (delete bin/obj/XamarinBuildDownloads and restart VS Mac) but nothing worked. Here are the versions of the associated libraries:
Here are the build errors:
Environment: Version 8.10.8 (build 0)
=== Mono Framework MDK === Runtime: === Roslyn (Language Service) === 3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb === NuGet === Version: 5.9.0.7134 === .NET Core SDK === SDK: /usr/local/share/dotnet/sdk/6.0.100-preview.7.21379.14/Sdks === .NET Core Runtime === Runtime: /usr/local/share/dotnet/dotnet === .NET Core 3.1 SDK === SDK: 3.1.412 === Xamarin.Profiler === Version: 1.6.15.68 === Updater === Version: 11 === Apple Developer Tools === Xcode 12.5.1 (18212) === Xamarin.Mac === Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version. === Xamarin.iOS === Version: 14.20.0.24 (Visual Studio Community) === Xamarin.Android === Version: 11.3.0.4 (Visual Studio Community) SDK Tools Version: 26.1.1 Build Information: === Microsoft OpenJDK for Mobile === Java SDK: /Users/joe/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25 === Android SDK Manager === Version: 16.10.0.13 === Android Device Manager === Version: 16.10.0.15 === Xamarin Designer === Version: 16.10.0.119 === Build Information === Release ID: 810080000 === Operating System === Mac OS X 10.16.0 Any help/ideas/workarounds would be greatly appreciated. |
I am getting this exception when configuring firebase. It starts throwing after I updated Firebase.iOS.Analytics to 6.0.4.1 (latest version).
Here is the log;
Failed to configure firebase. Error: Objective-C exception thrown. Name: FIRAnalyticsVersionMismatch Reason: Google Analytics for Firebase version (60004000) does not match with Google App Measurement (50500000) version. Please update.
Native stack trace:
0 CoreFoundation 0x00007fff23c7127e _exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff513fbb20 objc_exception_throw + 48
2 DDPYogaiOS 0x000000010b251ba9 +[FIRAnalytics logEventWithName:parameters:] + 0
3 libobjc.A.dylib 0x00007fff513fc103 CALLING_SOME+initialize_METHOD + 17
4 libobjc.A.dylib 0x00007fff513fcee9 initializeNonMetaClass + 624
5 libobjc.A.dylib 0x00007fff513fd4ba _ZL24initializeAndMaybeRelockP10objc_classP11objc_objectR8mutex_ttILb0EEb + 157
6 libobjc.A.dylib 0x00007fff51407a5d lookUpImpOrForward + 595
7 libobjc.A.dylib 0x00007fff513f8219 _objc_msgSend_uncached + 73
8 FirebaseCore 0x000000010c06733d -[FIRApp configureCore] + 413
9 FirebaseCore 0x000000010c067010 +[FIRApp addAppToAppDictionary:] + 97
10 FirebaseCore 0x000000010c0669c9 +[FIRApp configureWithName:options:] + 705
11 FirebaseCore 0x000000010c06665a +[FIRApp configureWithOptions:] + 92
My Environment:
The text was updated successfully, but these errors were encountered: