Error building iOS with firebase extension

#1

Defold version 1.2.172
Firebase extension https://github.com/defold/extension-firebase-analytics/archive/1.3.2.zip

When bundling for iOS I get the following error:

Undefined symbols for architecture armv7: "_kAPMSafelistedEventsOptionKey", referenced from: +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_1423240b22a8d04880a5570a49fcf86d.o) "_kAPMMonitorLogTagOptionKey", referenced from: +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_1423240b22a8d04880a5570a49fcf86d.o) "_kAPMAnalyticsConfiguration", referenced from: +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_1423240b22a8d04880a5570a49fcf86d.o) "_kAPMIsAnalyticsCollectionDeactivated", referenced from: +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_1423240b22a8d04880a5570a49fcf86d.o) "_kAPMAppMeasurementOriginFirebase", referenced from: +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_1423240b22a8d04880a5570a49fcf86d.o) "_kAPMIsAnalyticsCollectionEnabled", referenced from: +[FIRAnalytics startWithConfiguration:options:] in FirebaseAnalytics(FIRAnalytics_1423240b22a8d04880a5570a49fcf86d.o)

Anyone can help me fix it?
Thanks

0 Likes

#2

I downloaded and loaded the example project included with extension-firebase-analytics and bundled it for iOS using Defold 1.2.174 without any problems.

Could you try with Defold 1.2.174?

Are you testing from your own project with extension-firebase-analytics added as a dependency? If so, have you followed the setup instructions for iOS (https://github.com/defold/extension-firebase-analytics#23-setup-for-ios)?

0 Likes

#3

Tested with Defold 1.2.174, got the same error.
I did follow all the instructions for iOS as detailed here: https://github.com/defold/extension-firebase-analytics#23-setup-for-ios

Could it be related to the deployment target I use for my iOS project in Xcode?

0 Likes

#4

Xcode is not involved in any part of the build process.

Could you please share your project with me (bjorn@defold.se), including the GoogleService-Info.plist (or a demo project with the same problem)?

1 Like

#5

Ok, we figured it out. There’s a conflict between AdMob and Firebase. Issue: https://github.com/defold/defold/issues/5276

2 Likes