-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[🐛] Adding use_framworks!
gives transitive dependencies include statically linked binaries
error
#6425
Comments
Hi ! Try this : #6412 (comment) |
Duplicate of #6332 and please note - before you do any workarounds - this particular comment: In particular, if you want to use react-native-firebase v15+ you must use |
@mikehardy Sorry if this is out of scope but is flipper used automatically/depended on by React native like will removing it change anything about my usual workflow with React native? I've always seen it in my podfile but i wasn't sure exactly what purpose it serves? I know it's a debugger but I'm not sure if that means React native will stop displaying stack traces if I remove it. Sorry if this is a dumb question haha |
@mikehardy Also to disable do I just remove the
Also in the docs, is Does the |
Good news everyone. Just couple of minutes ago The only thing that's still not compatible is So my podfile has the following changes:
and I removed the following line:
as of note (which was particularly problematic before). The app still works with |
@samuelhulla did you manage to make it work with flipper_configuration enabled ? |
@FadiAboMsalam as @mikehardy noted you can't use Flipper with |
I'm just getting back to this from a bunch of travel, sorry I've been absent. Hermes will work with Flipper will not work. Disabling it only means you can't use Flipper. Everything else is normal. If you don't explicitly use Flipper, you won't notice. Setting it to Still working on Flipper just so it can work, but having Hermes working is great progress |
I've just learned of this (I should have seen it earlier!) which will be my first attempt at getting it working for Flipper. It will likely still be a few days, if anyone else wants to try it and report, it seems pretty easy as just a Podfile change: https://fbflipper.com/docs/getting-started/ios-native/#cocoapods (note specifically the use_frameworks commented out section, that's the thing to try) |
Hey @mikehardy, I tried it but can't pass from these errors:
An issue related: facebook/flipper#3861 but instead of x86_64, for me it is arm64 (m1). At least for now I can successfully build with Another thing is, to build successfully without Flipper I have to set
on
Related to that I found these issues: facebook/flipper#3995 and jakobo/expo-community-flipper#18 I will try to dig a bit more into this problem. |
Oh I had high hopes for the trick from the Flipper documentation. I guess it will take more serious effort Thanks a bunch for testing, by the way For your second one it, I personally do not have react-native-flipper installed. Are you using flipper for Android then? I wouldn't expect that package to work with Flipper disabled so it makes sense that with Flipper disabled on iOS you have to tell react-native-flipper not to try anything on iOS |
Yes, I use it on Android. I swore that package "react-native-flipper" was mandatory, but now I know it's only necessary when using third party flipper plugins like react-navigation and redux plugin in Flipper. I tested again without the the "react-native-flipper" package but got the same error:
If I find something useful I come back here. Tell me if you want me to try something different. |
Thank you |
Having Hermes without Flipper means it is impossible to debug network requests, which is a no-go for any production app. How is everyone working around this? |
I believe the performance module of react-native-firebase may actually be of service here, otherwise you could perhaps use network analyzers? Sadly, I/we are not in control of the Flipper team's engineering resources and their prioritization of this issue but I encourage you to go vote on the linked issue. |
I was more interested in knowing what others are doing in practice, since |
@ricardobeat we're still on the 14.x waiting. |
@hexadecy your comment was the fix we went with, as ours is a production app in which we were adding only analytics it was not feasible to drop flipper disrupting development. Anybody interested in analytics without sacrificing flipper, follow the usual instructions but use |
This is what is currently working for me to use react-native-firebase:17.4.3 and react-native:0.71.7 with Hermes and Flipper enabled. Replace:
with:
Keep this line below the changes:
Hopefully Flipper becomes compatible with use_frameworks in the future , but this works in the meantime. |
Thanks for the workaround in #6425 (comment)! This worked for me as well. Firebase + Hermes + Flipper. The only downside is that this increased my IPA file size by 0.9mb. From 26.3mb to 27.2mb. |
Any idea on how to do this on expo managed project where iOS folder is not tracked on GitHub as it is generated automatically by Expo ? |
Any suggestions on how do I use above solution with RN v 0.72.5, downgrading it to 0.71.7 is painfull |
I'm not aware of a need to downgrade react-native. https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh worked with react-native 0.71.x and it worked with 0.72.x It uses the strictly required No support is offered or should be expected for any workarounds involving |
My solution was still working for me with react-native-firebase:18.5.0 and react-native:0.72.6. Looking back in my commit history, I don't see any changes I had to make to support those versions. I can't speak to any versions after those. My reason for finding an alternate solution was that at one time react-native-reanimated broke Chrome debugging in Android. Between that and having to disable Flipper, I was unable to effectively debug Android issues. And I know several other React Native libraries out there also have issues when using That said, mikehardy does great work in the React Native community. For future maintainability, your best bet is going to be sticking with his instructions to use |
I'm getting above error in xcode below is my podFile conent for the time being without Shane's solution I'm using NO_FLIPPER=1 npx pod install but getting native module for flipper unavailable Please suggest me what I do to use flipper |
Go back and take a look at the documentation for Altering CocoaPods to use frameworks. It says to add Using a vanilla [email protected] install and react-native firebase, your podfile would look like this:
Note: The latest versions of react-native now support You might need to reset and reinstall your pods: Get that working first. Then if you want to try to enable Flipper, then remove
I can't offer any support beyond that so if it doesn't work, then just stick with the original documentation. |
Don't enable Flipper. Flipper has no future in the react-native community - you can read discussions upstream but if I understand correctly it is deprecated. Best to use something different like good old console.log debugging or apparently reactotron |
@mikehardy @Shane-Goodwin Thanks a lot for support finally I've decided not to go with flipper mike is right in future I'll have to upgrade my project and flipper will again cause issue even after doing workarounds, so better is to go without flipper |
For now, if you are not using Hermes, you can use React Native Debugger until something comes out to replace it or they add Hermes support, or reactotron as suggested (never tried it) |
Issue
So reading through the Altering CocoaPods to use frameworks section of the documentation, I see the note about
use_frameworks!
. However now that the React Native v0.69.1 has been released, how do we go about modifying the podfile?Googling surfaces this: facebook/flipper#606 (comment) and I'm wondering if this is the way to go or if there is another recommended way? I'm on react native v0.69.3 now
Project Files
N/A
Javascript
N/A
package.json
:# N/A
firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 5.4.3
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y/N
&VERSION
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: