Build fails after migrating from React Native Firebase V5 to V6 #7059
Unanswered
Rajai-Sunnyclock
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Whilst migrating from React Native Firebase V5 to V6, After making the necessary changes in the Package.json file, it is recommended to use the following two lines in our podfile.
1)use_frameworks! :linkage => :static
2)$RNFirebaseAsStaticFramework = true
Ref:https://rnfirebase.io/migrating-to-v6
This will ensure that dependencies are built as frameworks but linked as static libraries. This is a mandatory requirement of RNFirebase.
We were able to successfully install the libraries with given steps. But we started to have problems with other libraries like Realm, Sodium, AppAuth etc., Most of them had trouble finding header files which are inside the project. We believe these problems are caused because of the line "use_frameworks! :linkage => :static!" used in the podfile. Because it alters the way these libraries linked with the project
Solutions tried so far :
Tried "modular_headers => true" for firebase dependencies
Tried "use_modular_headers!"
Changed "Define Modules" to No for non firebase frameworks attached to pods.xcodeproj
Beta Was this translation helpful? Give feedback.
All reactions