-
Notifications
You must be signed in to change notification settings - Fork 8
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
EAS build fails - 'FBDefines/FBDefines.h' file not found #26
Comments
Start by removing Let's definitely keep an eye on that linked Flipper issue, as it seems to be very related. |
Thanks for looking at this @jakobo !
Found another relevant issue. |
Thanks. Do you mind sharing your podfile in case there's something conflicting with the Flipper code? You can run
|
Here's the Podfile after
One thing that I'm noticing is that I have Looking at this Podfile comment it seems use_frameworks! is not compatible with flipper? Or maybe this plugin needs to add the instructions from the comment - |
This is going to be a long writeup with no good answers, just some things to try. It looks like the prebuild is now pulling the latest template which includes a 5mo old change for the build-properties config plugin. The change for expo/expo#17106 added the Best Chance: Use Expo's PluginsAccording to the build properties config plugin, we can force static linkage by including the new-ish build properties plugin. That should be enough to make everything play nicely assuming the static linking directive does what it should.
And updating our plugin list {
"expo": {
"plugins": [
[
"expo-build-properties", { "ios": { "useFrameworks": "static" } }
]
]
}
} Second Best Chance: Upstream ChangeI'm tagging @Kudo (original author of expo Podfile change) in case there's a way we can solve this on the expo side. Ideally, that entire Third Best: Using this Plugin Nukes
|
I am actually already setting Here's my full set of plugins:
I can confirm the build succeeds when Is that expected to work with static useFrameworks?
|
Yeah. I was hoping to avoid the static linking statements, specifically because of the transitive dependency problem they mention:
There are a lot of pods that use OpenSSL-universal. Unfortunately, firebase absolutely needs the use _frameworks line as of v15+. On the rn-firebase repo, they are trying the static link solution above without success. The flipper issue here makes it clear that there is no chance of use_frameworks and flipper working together. 😭 This might literally be a “these don’t work together” problem, and adding flipper will explicitly remove use_frameworks. |
Note: it's pretty clear at this point it's a flipper + |
@all-contributors please add @nkalinov for bugs, this has been a huge help. The next revision to the plugin will make it possible to choose flipper or use_frameworks so at least you can get Flipper support on Android |
I've put up a pull request to add @nkalinov! 🎉 |
Workaround available in v46.0.2 via a configuration option. You can explicitly disable flipper in iOS if you're using a plugin that requires |
I'll try the new options, thank you so much! But first, I need to dig into another failure related to |
hi there! this is Kudo from expo. for the flipper + use_frameworks issue, i think it's currently breaking as the issue states. hopefully there's something flipper team could pay more attention on it. if there's any thing we could help from expo side, please let me know. thanks! |
Thanks Kudo (sorry about the tag, but I figured if anyone understood the config plugin changes on expo side it would be you or Evan). I'm not sure there's anything we can do from the expo side unless you think we could change the expo-build-properties plugin to only add the For now, I've added the ability for this plugin to strip the |
actually we did. please see the tail of this line, it is: fwiw, for upcoming sdk 47, i also changed the Podfile a little bit. especially for the flipper settings here. hopefully that would not break the config-plugin from expo-community-flipper. please let me know how do you think for it. thanks! |
We anchor off of the Also, the tailed line helps a ton. I think that gives us "as good as it gets" parity with a regular react-native setup. Appreciate your support on all of this from the Expo side. @all-contributors, can you add @Kudo for docs and questions? ❤️ |
@nkalinov I'm going to close this for now, as we will either need to pick firebase or flipper on iOS 😢 However, we'll keep tracking the flipper project to see if the |
Just adding a comment if someone runs also into these exceptions when building for iOS with
For now I fixed it by setting in eas.json
|
Just to clarify, do you mean here? Or somewhere else?
|
Hi,
I am trying to setup Flipper for first time in my Expo app but something fails and I have no idea how to fix.
I followed this blog post - https://blog.expo.dev/developing-react-native-with-expo-and-flipper-8c426bdf995a
Maybe a relevant issue - facebook/flipper#478 ?
Dependencies:
Error log:
The text was updated successfully, but these errors were encountered: