React Native “Pod-{Some Target}”目标具有包含静态链接二进制文件的可传递依赖项:(翻盖-升压-iOSX和翻盖-RSocket)-Firebase

wf82jlnq  于 2022-11-25  发布在  React
关注(0)|答案(2)|浏览(67)

遵循tutorial安装React Native Firebase软件包。

我经常收到此错误:-

The 'Pods-{Some Target}' target has transitive dependencies that include statically linked binaries: (Flipper-Boost-iOSX and Flipper-RSocket) .
我还没有找到解决这个问题的具体办法。

ibps3vxo

ibps3vxo1#

根据我们得到的错误信息,解决方案是非常明显的,但是"我是Web开发人员,为什么我会用Pods:D来麻烦"。:flipper_configuration => FlipperConfiguration.enabled应该可以,至少它对我有用。
让我在这里发布整个Pods文件:

$RNFirebaseAsStaticFramework = true
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false

production = ENV["PRODUCTION"] == "1"

target 'RNComponents' do

  use_frameworks!
  config = use_native_modules!

  # 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
    :production => production,
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    # :flipper_configuration => FlipperConfiguration.enabled,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  target 'RNComponentsTests' 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
0yg35tkg

0yg35tkg2#

注解掉

# Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
  use_Flipper()

可能在ios/podfile的第27行

相关问题