-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Allows react-native-firebase to be used via Podfile with use_frameworks! #2235
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
Conversation
Codecov Report
@@ Coverage Diff @@
## v5.x.x #2235 +/- ##
=========================================
Coverage ? 76.27%
=========================================
Files ? 61
Lines ? 1576
Branches ? 0
=========================================
Hits ? 1202
Misses ? 374
Partials ? 0 |
Thanks for this! The podspec is obviously fundamental to the project so I need to very carefully test this one out, but I appreciate the PR, and if it fixes (at minimum) our header search path issues, oh man that will be helpful :-) |
@mikehardy take your time, my trick referenced is perfect & enough for me atm. |
Just wanted to say I tried this out and it worked for me as well. Thanks @MoOx! |
I appreciate the success report, thank you for testing and reporting back |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks ok to me, the impact is only Pods users, so won't need to test out non-pods behaviour here at least.
If this works in the tests app with all modules enabled then this should be good to go 👍
This should be in 5.5.4 - thanks @MoOx ! |
@MoOx You are a champ my friend, this saved me so much time! |
released 5.5.4 with use_frameworks support today! |
I got this error after upgrading to 5.5.4, my project has
|
I just tried & didn't get any issue while creating an archive via Xcode. Here is my podfile (cleaned to keep firebase stuff only as I have things I cannot share)
Note here that I removed private stuff that are not interesting. I just kept the last part which is mandatory for me as I have some other deps that can't work with ENABLE_BITCODE. |
@MoOx cause you are using your current way is not recommended according to https://rnfirebase.io/docs/v5.x.x/installation/ios#Option-2:-Cocoapods-(Not-Recommended) |
@namvoeh this might become the new recommended approach, see #2223 (comment) If you don't use RNFirebase from podfile, I don't see how the change in this PR might affect you. Podfile is only used when using the method I used, that you seems not to use. |
you are right. Moreover, RN 0.60 will support cocoapods integration by default https://github.com/facebook/react-native/releases/tag/v0.60.0-rc.3. |
Ref #252 (comment)
Checklist
Android
iOS
e2e
tests added or updated in /tests/e2e/*Test Plan
I tested this like that:
node_modules/react-native-firebase/ios
after install (as in the pr)pod install
(cocoapods read the podspec)Release Plan
[IOS][BUGFIX] [ios/RNFirebase.podspec] - Allows react-native-firebase to be used via Podfile with use_frameworks!
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter