-
Notifications
You must be signed in to change notification settings - Fork 952
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
error while installing Flipper-Boost-iOSX with use_frameworks! #3938
Comments
Can you show your Podfile? |
source 'https://cdn.cocoapods.org/'
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
$RNFirebaseAnalyticsWithoutAdIdSupport = true # Disable Ad Id usage
$RNFirebaseAsStaticFramework = true
production = ENV["PRODUCTION"] == "1" || ENV['CI'] == "1"
project 'DietDoctorRN',
'Debug-prod' => :debug,
'Release-prod' => :release,
'Debug-dev' => :debug,
'Release-dev' => :release
platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false
use_frameworks!
target 'DietDoctorRN' do
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
:production => production,
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
:flipper_configuration => FlipperConfiguration.new(!production, ['Release-prod','Release-dev','Debug-prod', 'Debug-dev'], {}),
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
pod 'KeychainSwift'
# permission handlers for ios
# https://github.com/zoontek/react-native-permissions
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary"
target 'DietDoctorRNTests' do
inherit! :complete
# Pods for testing
end
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end I tried your workaround in your document but that breaks the build. |
ReactNative doesn't support use_framework!, so You need remove it on Podfile. |
@baveku Are you sure? facebook/react-native#34011 starts with "use_frameworks! is broken again in react-native 0.69..." which implies it worked in the past and the release notes for 0.69.1 state it should work again: https://github.com/facebook/react-native/releases/tag/v0.69.1 |
@matinzd you're not trying this with RN 0.69.0 by any chance are you? |
I am trying with 0.69.3.
This should be fixed AFAIK but not for |
I have the same problem with react-native 0.69.3 and firebase 15.2.0. After updating the firebase the issue arise with Flipper. |
I got same issue with "react-native": "0.69.3", and "@react-native-firebase/app": "^15.2.0" |
Looks like something suspicious to me |
Is there any progress on this issue? We need it for our app as we can't update our Firebase and RN until this is fixed |
I got the same problem, when i run
|
Yeah we know removing flipper can fix the issue but this needs to be fixed in Flipper. |
@matinzd Did you fix this issue? |
Remove: use_frameworks!
Works here! |
https://rnfirebase.io Note use_frameworks is not compatible with Flipper. A fix was put in place in react-native release 0.69.1 that makes it work with and without Hermes. To use it with Hermes make sure you have set static linkage with use_frameworks! :linkage => :static. To use without Flipper, comment out the :flipper_configuration line in your Podfile. Community support to help fix use_frameworks support for New Architecture is welcome! Getting Error Flipper.h not found |
Not work for me. issue facebook/react-native#26217 |
Dear @douglassoldan, Does the above change work on RN v0.68.2? after installing Firebase stuff the flipper network plugin doesn't work anymore. |
For now, you can either downgrade Firebase SDK to 14.x.x or try removing incompatible modules with |
@matinzd Which version are you using? |
++ |
++++++ |
Same issue here |
+1 |
2 similar comments
+1 |
+1 |
That doesn't help for statically linked libraries such as react native firebase or react native video. |
I solved this problem with the following code in my project (react native version: 0.68.3)
|
How is this not fixed? You are literally stuck if you use the latest Firebase and Hermes. No way to debug your API calls. @xueqiulou you mean to put the static lib (in my case react-native-firebase) inside the |
➕ ➕ ➕ ➕ |
Still got the same error with react 0.73 while following the 'AwesomeProject' tutorial, I kept retrying until it worked. |
You have to replace this |
I think this issue should be closed, Flipper doesn't exist in the React Native package anymore. cc: @matinzd |
🐛 Bug Report
I know that Flipper is not compatible with use_frameworks yet but this topic will get too heated.
If we enable
use_frameworks!
there are some issues installing statically linked binaries:Related issue: #2414
To Reproduce
use_frameworks!
in podfilepod install
Environment
The text was updated successfully, but these errors were encountered: