use_frameworks causes all kinds of worrying side effects #6522
-
Hi, Thanks for a great library and good work with replying to and fixing issues. Like many others, I've had some trouble with the latest version of the library due to the usage of use_frameworks. First, it didn't build with hermes, then Flipper etc. Then I had to modify my Podfile to make it work with react-native-permissions. Then, I saw some very strange behavior with react-navigation (and react-native-screens) so I needed to patch that in my Podfile as well (set the pod build type). The most worrying of all these was the last issue, as that failed silently. It wasn't until I moved around in the app that I noticed that routes started freezing. What I'm trying to get to is that use_frameworks seems to cause all kinds of worrying side effects with other libraries, some of which I can't seem to catch with tests or failing builds. React Native Firebase is the only library I've come across that uses it, so I'm just curious to understand why it's needed, and if there's no way of getting around it? I. e. stop having to enable use_frameworks. Partially using this solution found on StackOverflow, seems to work (pod install, app builds, no errors from what I can see) without "use_frameworks":
Any reason this shouldn't work? Am I missing something? Otherwise, this should be the recommended setup instead of use_frameworks? After all, the error I'm getting when trying to pod install without any other modification of the Podfile except for setting $RNFirebaseAsStaticFramework = true is very much in line with the fix from StackOverflow:
If doing exactly what the error message says fixes the problem, why the need to add use_frameworks? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Tried to remove this question but couldn't figure out how - so I'll write an answer instead if anyone else is looking: Okay, so after having gone through the last 200 issues in this repo, I've learned that it's the underlying Firebase SDK for ios that requires use_frameworks. However, it seems to be almost impossible to get this 100% stable if you're using other libraries as well. Will keep trying to find a solution. |
Beta Was this translation helpful? Give feedback.
Tried to remove this question but couldn't figure out how - so I'll write an answer instead if anyone else is looking:
Okay, so after having gone through the last 200 issues in this repo, I've learned that it's the underlying Firebase SDK for ios that requires use_frameworks. However, it seems to be almost impossible to get this 100% stable if you're using other libraries as well. Will keep trying to find a solution.