Analytics: Undefined symbols for architecture x86_64 #6484
-
I'm trying to build an iOS development build of my Expo project for an iOS simulator. I'm developing the app using the managed workflow with a custom development client. My project depends on a suite of React Native Firebase libraries, including Firestore and Auth. Recently, I also added Analytics by executing
This is the link to the minimum, reproducible example on github. Please run
None of the above solutions worked. Am I missing something here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You missed an mvce https://stackoverflow.com/help/mcve if you posted on stackoverflow, and it would help here. Some sequence of commands we could run to reproduce. Expo support here is community driven though, and I'm not sure anyone that has contributed it so far (in the form of config plugins) is that active here. I'm the main maintainer and I have no Expo experience and no time to gain any so I'm not much help unfortunately. How did it go when you asked on the Expo forums? I will say that just as a raw compilation error, it appears maybe the compiler is uncertain about which architectures to build and built either x86 or arm or something for FIRAnalytics. That's vague and probably wrong, sorry. This is one of those errors where Expo has helpfully isolated you from all the underlying machinery in use until something 3 levels down blows up and now there's little ability to understand it or effect change and fix it... |
Beta Was this translation helpful? Give feedback.
-
It turned out that my setting for a config plugin (that writes configurations for native projects) was wrong.
In my original code, instead of |
Beta Was this translation helpful? Give feedback.
It turned out that my setting for a config plugin (that writes configurations for native projects) was wrong.
firebase-ios-sdk
requires the usage of frameworks. To specify this on a managed Expo project, you need to install a config plugin calledexpo-build-properties
and edit the plugin property ofapp.json
like following:In my original code, instead of
static
, I specifieddynamic
, which was causing the error.