-
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
[🐛] Bug Report Title - FirebaseStorage/FirebaseStorage-swift.h file not found #7319
Comments
This is a workaround to avoid It is not supported. as It leads to compilation errors such as this. |
Hi @mikehardy, I see that the issue is marked as completed but the solution doesn't help. I have tried modular_headers => true. I used use_frameworks with static and also use_frameworks! but the error doesn't go away. I have deleted pods, reinstalled them, deleted node-modules, reinstalled them, but nothing seems to be working. I really need help on this one because I am stuck on this for past 12-13 hours. |
Sorry @adnan-jamil - I do not reproduce problems like that, and I build test things near-daily in order to troubleshoot issues for users here and to test dependency upgrades within my app and react-native-firebase, using this script which reproduces successful builds: https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh Please note that no solution involving Use only |
Thank you @mikehardy your instructions work for me. @adnan-jamil did you follow exactly what is written in the post above ? I have to say I am quite surprised with the amount of things one has to do to get these things to work from a basic monorepo started based on Expo, RN, Next and Solito. |
@VGerris I believe in the Expo use case it's a matter of turning on "useFrameworks" in "static" mode in the Expo buildconfig, then adding the expo config plugins (if they exist) for each module you want. You'll need to have the google config plist / json files included somehow as an EAS build secret or something but...same for any cloud service API you use yes? And...that ...should be it? |
I am not entirely sure, I had all Google config in place and expected it to 'just work'. The Podfile is generated by Expo and I see now having a bit more understanding that I basically just need to add the config as you posted for the modules the error throws at building. Without your post with example it would have been a lot harder to figure out, having practically zero experience with any part of the stack :). In a recent build I needed : pod 'FirebaseAuth', :modular_headers => true just before the post_install loop. Regarding framework there is the following in the standard config, I didn't change anything else : use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks'] |
I just installed the @react-native-firebase/storage and my app build failed on iOS with an error
Here is my Package.json file
Pod file
environment
Node v 18.17.1
npm v 9.6.7
xcode 14.2
It is working fine on Android but build failed on iOS only
The text was updated successfully, but these errors were encountered: