-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't compile project with Plugin.Firebase.Analytics 3.1.0 release IPA (Undefined symbols for architecture arm64) #387
Comments
The same |
Have the same issue too, although my issue occurs in both Debug and Release configurations. @gkmiel-hb the implication is that you have optimization turned on in your Release configuration and that is why you are getting undefined symbols, you can try turning linker optimization off to confirm that is the case for you. One other difference with @gkmiel-hb is that my ios framework is targeted as follows:
|
@SOFSPEEL Check BuildIpa setting in your project Debug configuration. It must be equal to False for successful compile: False I have tried different linking options including optimization. Results are the same. |
@gkmiel-hb, without the BuildIpa setting are you even able to run the build, thought BuildIpa was necessary to produce the .ipa so that you can run? |
@SOFSPEEL I can run app on test device without ipa using Hot Restart option |
Same here. Just integrated Plugin.Firebase.Analytics 3.1.0, and i get the same error both when trying to run locally, and when trying to build for release. |
Try to add the following lines to the end of the .cproj file
|
@sokrog thanks. I tried adding the above, but got the same errors. |
I'm also having the same issue.... |
@bchehab Maybe this one ? (also add inside main project .cproj file)
|
@sokrog , tried with both. same error |
If Plugin.Firebase.Analytics 3.0.0 works for you, but 3.1.0 does not, the issue is most likely related to your build machine's .net8-ios configuration and XCode version. Please make sure you're using XCode 16, have the latest .net sdks installed, and have updated and restored your workloads. If 3.0.0 does not work for you either, then there's a different problem. |
Tried both and downgraded Plugin.Firebase.Analytics to 3.0.0. Same errors |
Same outcome as @gkmiel-hb with Analytics 3.0.0 I'm building on github actions, using XCode 16. Project is .net 8 |
I have attached testing project if someone which has success in compiling could spend some time for testing. Then we could know that issue is related with development environment |
@gkmiel-hb I am able to build and deploy your sample project to a simulator. XCode 16.2
|
Thanks @AdamEssenmacher |
I have updated XCode and SDK versions but without success in compiling |
@gkmiel-hb Did you find a work around for this? I'm having the same problem, SDK 9.0.101 & xcode 16.2, and nothing works. |
@rurounidev No. I am waiting for "real" MAC, but I investigate alternatives like Native Library Interop. First results were similar to Plugin.Firebase.Analytics issue. I have found solution to resolve MAU.NativeLibraryInterop problem. On interop library in my project dependencies, I have set "Reference Output Assembly" property to True. For Plugin.Firebase.Analytics project I don't know which nuget package contains "_APMAnalyticsConfiguration" and is it the same issue. Maybe Plugin.Firebase.Analytics nuget authors could help us. I am newbie to native coding. I have some expierence in C++ interops for C#. |
Same issue, app was building before adding Target framework net9.0-ios (MAUI 9.0.21) |
Same Issue here |
I get this error when i try to compile
is that actually related? Why the package has Xamarin package dependency? |
Disable linking in your project with mtouch link sdk only |
@MaxMa04 thanks for your quick reply but if you mean this. I dont have it. I am trying to debug it on simulator using apple silicon with the latest Xcode and Rider versions I have also deleted Library/Caches/XamarinBuildDownload folder as suggested some posts but didnt help me. PS; my project is using .Net9, not that it if that can be the reason? |
+1 Has anyone been able to solve this problem? |
General recomendation for everyone: if you are using Plugin.Firebase just to send/receive push notifications, ifs quite the overkill. You will run into a lot of issues, and even if the owner puts a lot of work into this project, you will face a lot of similar problems like this in the future. So if you just want to use push notifications in your maui app, i recommend using OneSignal. Its free and really easy to use, the setup is done in 5 minutes. If you wish i can make a video how to set up everything for ios and android. |
@bchehab thanks my friend! I would gladly part with this plugin, but I am stuck with it in authorization ... by trial and error I was able to make it work on .Net 9 in the versions in the picture. I could not make it work with the latest versions. *Perhaps it is worth gradually abandoning it if you shoot such a video - it will be very useful. |
@decv86 Plugin.Firebase.Auth.Google really should be considered deprecated on iOS (at least at the moment). I would expect it to have problems with any version of this plugin >= 3.0.0. This is because Plugin.Firebase.Auth.Google has not been moved off of Microsoft's deprecated Xamarin.Google.iOS.SignIn package and, in turn, Xamarin.Firebase.iOS.Core. Microsoft never updated Xamarin.Google.iOS.SignIn past native SDK version 5.0.2, which is 6+ years old at this point. Xamarin.Firebase.iOS.Core was left at Firebase version 8.10 which--aside from being 4+ years old--is likely to be incompatible with many AdamE.* iOS packages. There is some good news though! A couple of weeks ago, I released AdamE.Google.iOS.SignIn, which is meant to be a compatible replacement for Xamarin.Firebase.iOS.SignIn (updated to latest native SDK v8.0.0). All that's left to do is update Plugin.Firebase.Auth.Google to use my updated bindings package. This is something I'll likely get to eventually, but can't promise a timeline. If anyone from the community would like to contribute a PR, let me know and I'll work with you 😄 |
@AdamEssenmacher It's kind of sad, I'm confused... |
What's confusing? I can explain further. |
@AdamEssenmacher Do you want to say that it is better to abandon the Plagin.Firebase package and switch to using the AdamE package? In fact, I just need Firebase authorization (mail and native) - which way should I go? |
For iOS, Plugin.Firebase is built on the AdamE packages--except for Google auth. It is just the last package left to be updated from <v3.0, which unfortunately makes it incompatible with the rest of the plugin (again, just on iOS). So... yes. if all you need is Firebase Auth with Google integration, then I would not recommend using this plugin directly at the moment. |
Hi,
I can't compile release ipa for iOS MAUI app (.NET8). I have tried different environments:
macOS Sonoma XCode 16.1);
Compiler works fine with debug configuration.
Compiler throws these errors for release configuration:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : clang++ exited with code 1:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : Undefined symbols for architecture arm64:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMAnalyticsConfiguration", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMAppMeasurementOriginFirebase", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMConsentSettings3P", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics setConsent:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMFormattedEventName", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics logEventWithOrigin:name:parameters:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMFormattedUserPropertyName", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics setUserPropertyString:forName:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMIsAnalyticsCollectionDeactivated", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMIsAnalyticsCollectionEnabled", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMMonitorLogTagOptionKey", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMUserDataFieldEmailAddress", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics initiateOnDeviceConversionMeasurementWithEmailAddress:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMUserDataFieldHashedEmailAddress", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics initiateOnDeviceConversionMeasurementWithHashedEmailAddress:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMUserDataFieldHashedPhoneNumber", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics initiateOnDeviceConversionMeasurementWithHashedPhoneNumber:] in FirebaseAnalytics10
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "_APMUserDataFieldPhoneNumber", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : +[FIRAnalytics initiateOnDeviceConversionMeasurementWithPhoneNumber:] in FirebaseAnalytics10
Testing project file is attached. I can add full project for testing.
MauiApp2.zip
Any help would be appreciated. Thank you.
The text was updated successfully, but these errors were encountered: