Skip to content

[🐛] 'FirebaseCoreExtension/FIRLibrary.h' file not found #6322

Closed
@FelipeLimaDeSouza

Description

@FelipeLimaDeSouza

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

$RNFirebaseAnalyticsWithoutAdIdSupport=true
$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, '13.0'
use_frameworks!

permissions_path = '../node_modules/react-native-permissions/ios'

target 'App' do
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])

  pod 'CryptoSwift', '1.4.0'
  pod 'SharkORM', '2.3.62'
  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  # use_flipper!({ 'Flipper-Folly' => '2.5.3', 'Flipper' => '0.87.0', 'Flipper-RSocket' => '1.3.1' })
  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

  pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
  pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary"
  pod 'Permission-PhotoLibraryAddOnly', :path => "#{permissions_path}/PhotoLibraryAddOnly"
  pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"

  pod 'react-native-date-picker', :path => '../node_modules/react-native-date-picker'

  pod 'react-native-sensitive-info', :path => '../node_modules/react-native-sensitive-info'


  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
    # flipper_post_install(installer)
    
  end

  $static_framework = [
    'CocoaAsyncSocket', 'ComponentKit',
    'CocoaLibEvent', 'OpenSSL-Universal', 'boost-for-react-native',
    'RNFBApp', 'RNFBAuth', 'RNFBFirestore', 'RNFBStorage', 'RNFBDatabase',
    'RNFBDynamicLinks', 'RNFBPerf', 'RNFBAnalytics', 'RNFBCrashlytics',
    'Permission-Camera', 'Permission-PhotoLibrary', 'Permission-PhotoLibraryAddOnly',
    'Permission-LocationAlways',
    'RNPermissions']

  pre_install do |installer|
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}

    installer.pod_targets.each do |pod|
        if $static_framework.include?(pod.name)
          def pod.build_type;
            Pod::BuildType.static_library
          end
        end
    end
  end

end

My package.json (react and react native version)

"react": "^17.0.2",
"react-native": "^0.67.4",

My package.json (firebase version)

"@react-native-firebase/analytics": "^15.0.0",
"@react-native-firebase/app": "^15.0.0",
"@react-native-firebase/crashlytics": "^15.0.0",
"@react-native-firebase/database": "^15.0.0",

OS Version

macOs Monterrey 12.4
Xcode 13.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    help: needs-triageIssue needs additional investigation/triaging.type: bugNew bug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions