-
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
[🐛] 'FirebaseCoreExtension/FIRLibrary.h' file not found #6322
Comments
Hmm, something's not right. I don't know about this bit:
Looks like a workaround we haven't verified. That's not how I developed the new version. Rip all that out, just do Make sure this is there? https://rnfirebase.io/#allow-ios-static-frameworks ( Additionally, you've purged out all sorts of other useful info like, for instance, what version of react-native are you on? What version of macOS / Xcode? I just updated my demo script to verify this all can work and it works for me with the appropriate static frameworks updates: https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh |
I updated my issue with O.S and RN version
|
All I can say is I have a fully scripted demo with comments on what each step is doing, and you can run it and it works - the make-demo.sh script Please try it to make sure it works - somewhere in the difference between what it does and your project is the difference, but I'd like to see if the demo works in your environment, then you can start looking for differences? There must be something different in the Podfile from the demo and your project. Versions seem okay, I don't think react-native 0.67 vs 0.68 will matter though that is a difference |
Also had this issue and had to downgrade back to |
Does https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh work for you in your environment @enchorb ? |
Incidentally - @enchorb hermes will not work until this is released: facebook/react-native#34030 (comment) - which will likely be react-native 0.69.1 (note: 0.69.0 is not out yet but it's closed for pick requests now and this hermes fix literally just merged a few minutes ago) Right now for react-native-firebase v15 you need react-native 0.68.2 or lower, hermes off, flipper off, and not the react native new architecture. The changelog mentions the same along with some links for more details on progress removing those restrictions. [update - I've got a patch for react-native 0.69.0 that lets it work, with hermes even, just no flipper or new architecture: https://github.com/mikehardy/rnfbdemo/blob/main/patches/react-native%2B0.69.0.patch ] |
This comment was marked as resolved.
This comment was marked as resolved.
@Fawxy - can you specify anything more about your environment than
? In my "seems to work fine" environment(s) I have this for instance:
|
This comment was marked as resolved.
This comment was marked as resolved.
Here's what make-demo results in, compare and constrast, perhaps modify your Podfile to look like it? require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '11.0'
install! 'cocoapods', :deterministic_uuids => false
target 'rnfbdemo' do
config = use_native_modules!
config = use_frameworks!
$RNFirebaseAsStaticFramework = true
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
$FirebaseSDKVersion = '9.1.0'
target 'rnfbdemoTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
#use_flipper!()
post_install do |installer|
react_native_post_install(installer)
installer.aggregate_targets.each do |aggregate_target|
aggregate_target.user_project.native_targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['LIBRARY_SEARCH_PATHS'] = ['$(SDKROOT)/usr/lib/swift', '$(SDKROOT)/System/iOSSupport/usr/lib/swift', '$(inherited)']
end
end
aggregate_target.user_project.save
end
installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings["CODE_SIGN_IDENTITY[sdk=macosx*]"] = "-"
end
end
end
installer.pods_project.targets.each do |target|
if (target.name.eql?('FBReactNativeSpec'))
target.build_phases.each do |build_phase|
if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs'))
target.build_phases.move(build_phase, 0)
end
end
end
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["GCC_WARN_INHIBIT_ALL_WARNINGS"] = "YES"
end
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["CC"] = "clang"
config.build_settings["LD"] = "clang"
config.build_settings["CXX"] = "clang++"
config.build_settings["LDPLUSPLUS"] = "clang++"
end
end
installer.aggregate_targets.each do |aggregate_target|
aggregate_target.user_project.native_targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
config.build_settings['EXCLUDED_ARCHS'] = 'i386'
end
end
aggregate_target.user_project.save
end
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end |
This comment was marked as outdated.
This comment was marked as outdated.
@KubilayKerim how did it go when you actually ran https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh in your environment ? I cannot troubleshoot specific projects as there are an infinite variety of ways people can do things that fail. So I offer that script which builds things from scratch and allows us to make solid assumptions about what is actually in the project (since it's constructed in a fully automated way) |
It's working for me. Tks @mikehardy rollback version to 14.11.0 is working for me |
Which unfortunately leaves you with no future as you can't stay there forever. Does https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh work for you in your environment ? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
I've rerun the build script from scratch and it seems to be working as expected. Here is my react-native info of the project that does not work with v15
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Current status here for me is that this is still not reproducible. I continue working on making the experience better though and current state is that with this patch (which is what will be released in react-native 0.69.1) I even have this working:
I qualify this stuff and prove to myself that it's working literally multiple times a day, from scratch using this script https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh Any note about build failures should be similarly reproducible so if there is a problem we may conclusively identify + fix it |
This comment was marked as duplicate.
This comment was marked as duplicate.
@igorcesarcode you are using |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm also facing the same issue.. fresh app and everything, core Firebase module was installed successfully but when I added Crashlythics package it failed with the same error My Podfile is same like you've described here, except that part for post_install. Update: After reading this, I've added Storage just to check if it'll work, and it does now. So previously, |
This comment was marked as resolved.
This comment was marked as resolved.
Crashlytics uses headers from this extension cocoapod, but it is only brought-in automatically by Storage and Functions currently. Depend on it directly #6322 (comment)
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Boom! react-native-firebase v15.1.1 coming up with the fix. Thanks a bunch for confirming 🙇 I'll collapse the other comments since the thread is getting big and we may discover other things, so current state is: For react-native-firebase v15 to work for people:
There are no other currently known failure modes, but each of this could get you iOS build failure with this message. |
Crashlytics uses headers from this extension cocoapod, but it is only brought-in automatically by Storage and Functions currently. Depend on it directly #6322 (comment)
This comment was marked as off-topic.
This comment was marked as off-topic.
Indeed, 0.69.x is still not ready unfortunately - and no build will be ready with hermes yet. I was under the impression that 0.68.x would work but perhaps reanimated cannot? You should post that in their repo if so, with a reproduction if possible, or if it is just because hermes does not work then track this: reactwg/react-native-releases#24 (comment) I understand this can be frustrating, apologies. There is no reason I know of that using react-native-firebase 14.11.1 will result in serious issues at the moment. It won't receive updates of course but it is not a terrible choice, it was current quite recently after all |
This comment was marked as off-topic.
This comment was marked as off-topic.
FYI, we also ran into this issue with 15.1.1 when using a older version of Firebase iOS SDK. We resolved it by updating to SDK 9.2.0 |
This issue should be restricted to discussing build errors that fail with this error and this error only please:
Other problems are being tracked elsewhere, but this is still a live topic for this error and I would like to keep it focused. Thank you! There is apparently a need for If anyone else notices a module that is normally used in combination with other modules (which hides this error!) but fails with this error message by itself, please let me know (and/or post a PR like #6405 and #6352) Thanks! |
I believe this issue is resolved, since there has been no traffic for a month and we did successfully reproduce a couple build errors and release fixes for them. Of note is that with react-native 0.70.0 we will be able to use Thanks everyone for the collaboration here and your patience as we transition to |
I updated my reac-native-firebase version to 15.0.0
Later I didn't start my project.
Error on: RNFBCrashlyticsInitProvider: 'FirebaseCoreExtension/FIRLibrary.h' file not found
My Podfile
My package.json (react and react native version)
My package.json (firebase version)
OS Version
macOs Monterrey 12.4
Xcode 13.4.1
The text was updated successfully, but these errors were encountered: