Firebase-ios-sdk: Keep experiencing '<GoogleUtilities/GULLoggerLevel.h>' file not found

Created on 15 Sep 2020  路  14Comments  路  Source: firebase/firebase-ios-sdk

Step 0: Are you in the right place?

  • For issues or feature requests related to __the code in this repository__
    file a Github issue.

    • If this is a __feature request__ please use the Feature Request template.

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general (non-iOS) Firebase discussion, use the firebase-talk
    google group.
  • For backend issues, console issues, and other non-SDK help that does not fall under one
    of the above categories, reach out to
    Firebase Support.
  • Once you've read this section and determined that your issue is appropriate for
    this repository, please delete this section.

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 11.7
  • Firebase SDK version: 3.6.0
  • Firebase Component: Core
  • Installation method: CocoaPods

[REQUIRED] Step 2: Describe the problem

Build is failing with '<GoogleUtilities/GULLoggerLevel.h>' file not found

Trying to connect firebase to react native app, but failing to build.

Have tried reinstalling Cocoapods, closing Xcode, removing derived data, deintegrating, clearing cache and reinstalling, pod update, opening Xcode, and rerunning the build but no luck.

Steps to reproduce:

  • Make sure you have all the requirements to set up a React Native project
  • Run npx react-native init nameOfProject
  • Run npm install @react-native-firebase/app @react-native-firebase/auth
  • Set up project in Firebase
  • Follow documentation to connect project to react native app
  • Run pod install
  • Run npx react-native run-ios

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

image

Unable to build via terminal or xcode.

AppDelagate.m

#import <Firebase.h>
#import "AppDelegate.h"

#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>

#ifdef FB_SONARKIT_ENABLED
#import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>

static void InitializeFlipper(UIApplication *application) {
  FlipperClient *client = [FlipperClient sharedClient];
  SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
  [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
  [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
  [client addPlugin:[FlipperKitReactPlugin new]];
  [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
  [client start];
}
#endif

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

if ([FIRApp defaultApp] == nil) {
  [FIRApp configure];
}

#ifdef FB_SONARKIT_ENABLED
  InitializeFlipper(application);
#endif

  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"test"
                                            initialProperties:nil];

  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];
  return YES;
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
  return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}

@end

PodFile

pod 'Firebase/Analytics'

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

platform :ios, '10.0'

target 'test' do
  config = use_native_modules!

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

  target 'testTests' 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 these next few lines.
  use_flipper!
  post_install do |installer|
    flipper_post_install(installer)
  end
end

target 'test-tvOS' do
  # Pods for test-tvOS

  target 'test-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end
end

Podfile.lock

PODS:
  - boost-for-react-native (1.63.0)
  - CocoaAsyncSocket (7.6.4)
  - CocoaLibEvent (1.0.0)
  - DoubleConversion (1.1.6)
  - FBLazyVector (0.63.2)
  - FBReactNativeSpec (0.63.2):
    - Folly (= 2020.01.13.00)
    - RCTRequired (= 0.63.2)
    - RCTTypeSafety (= 0.63.2)
    - React-Core (= 0.63.2)
    - React-jsi (= 0.63.2)
    - ReactCommon/turbomodule/core (= 0.63.2)
  - Firebase/Analytics (3.6.0):
    - FirebaseAnalytics (= 3.4.2)
  - Firebase/Auth (6.30.0):
    - Firebase/CoreOnly
    - FirebaseAuth (~> 6.8.0)
  - Firebase/CoreOnly (6.30.0):
    - FirebaseCore (= 6.10.0)
  - FirebaseAnalytics (3.4.2):
    - FirebaseInstanceID (~> 1.0)
    - GoogleInterchangeUtilities (~> 1.2)
    - GoogleSymbolUtilities (~> 1.1)
    - GoogleUtilities (~> 1.2)
  - FirebaseAuth (6.8.0):
    - FirebaseCore (~> 6.10)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.7)
    - GoogleUtilities/Environment (~> 6.7)
    - GTMSessionFetcher/Core (~> 1.1)
  - FirebaseCore (6.10.0):
    - FirebaseCoreDiagnostics (~> 1.3)
    - GoogleUtilities/Environment (~> 6.7)
    - GoogleUtilities/Logger (~> 6.7)
  - FirebaseCoreDiagnostics (1.6.0):
    - GoogleDataTransport (~> 7.2)
    - GoogleUtilities/Environment (~> 6.7)
    - GoogleUtilities/Logger (~> 6.7)
    - nanopb (~> 1.30906.0)
  - FirebaseInstanceID (1.0.9)
  - Flipper (0.41.5):
    - Flipper-Folly (~> 2.2)
    - Flipper-RSocket (~> 1.1)
  - Flipper-DoubleConversion (1.1.7)
  - Flipper-Folly (2.2.0):
    - boost-for-react-native
    - CocoaLibEvent (~> 1.0)
    - Flipper-DoubleConversion
    - Flipper-Glog
    - OpenSSL-Universal (= 1.0.2.19)
  - Flipper-Glog (0.3.6)
  - Flipper-PeerTalk (0.0.4)
  - Flipper-RSocket (1.1.0):
    - Flipper-Folly (~> 2.2)
  - FlipperKit (0.41.5):
    - FlipperKit/Core (= 0.41.5)
  - FlipperKit/Core (0.41.5):
    - Flipper (~> 0.41.5)
    - FlipperKit/CppBridge
    - FlipperKit/FBCxxFollyDynamicConvert
    - FlipperKit/FBDefines
    - FlipperKit/FKPortForwarding
  - FlipperKit/CppBridge (0.41.5):
    - Flipper (~> 0.41.5)
  - FlipperKit/FBCxxFollyDynamicConvert (0.41.5):
    - Flipper-Folly (~> 2.2)
  - FlipperKit/FBDefines (0.41.5)
  - FlipperKit/FKPortForwarding (0.41.5):
    - CocoaAsyncSocket (~> 7.6)
    - Flipper-PeerTalk (~> 0.0.4)
  - FlipperKit/FlipperKitHighlightOverlay (0.41.5)
  - FlipperKit/FlipperKitLayoutPlugin (0.41.5):
    - FlipperKit/Core
    - FlipperKit/FlipperKitHighlightOverlay
    - FlipperKit/FlipperKitLayoutTextSearchable
    - YogaKit (~> 1.18)
  - FlipperKit/FlipperKitLayoutTextSearchable (0.41.5)
  - FlipperKit/FlipperKitNetworkPlugin (0.41.5):
    - FlipperKit/Core
  - FlipperKit/FlipperKitReactPlugin (0.41.5):
    - FlipperKit/Core
  - FlipperKit/FlipperKitUserDefaultsPlugin (0.41.5):
    - FlipperKit/Core
  - FlipperKit/SKIOSNetworkPlugin (0.41.5):
    - FlipperKit/Core
    - FlipperKit/FlipperKitNetworkPlugin
  - Folly (2020.01.13.00):
    - boost-for-react-native
    - DoubleConversion
    - Folly/Default (= 2020.01.13.00)
    - glog
  - Folly/Default (2020.01.13.00):
    - boost-for-react-native
    - DoubleConversion
    - glog
  - glog (0.3.5)
  - GoogleDataTransport (7.3.0):
    - nanopb (~> 1.30906.0)
  - GoogleInterchangeUtilities (1.2.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleSymbolUtilities (1.1.2)
  - GoogleUtilities (1.3.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleUtilities/AppDelegateSwizzler (6.7.2):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (6.7.2):
    - PromisesObjC (~> 1.2)
  - GoogleUtilities/Logger (6.7.2):
    - GoogleUtilities/Environment
  - GoogleUtilities/Network (6.7.2):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (6.7.2)"
  - GoogleUtilities/Reachability (6.7.2):
    - GoogleUtilities/Logger
  - GTMSessionFetcher/Core (1.4.0)
  - nanopb (1.30906.0):
    - nanopb/decode (= 1.30906.0)
    - nanopb/encode (= 1.30906.0)
  - nanopb/decode (1.30906.0)
  - nanopb/encode (1.30906.0)
  - OpenSSL-Universal (1.0.2.19):
    - OpenSSL-Universal/Static (= 1.0.2.19)
  - OpenSSL-Universal/Static (1.0.2.19)
  - PromisesObjC (1.2.10)
  - RCTRequired (0.63.2)
  - RCTTypeSafety (0.63.2):
    - FBLazyVector (= 0.63.2)
    - Folly (= 2020.01.13.00)
    - RCTRequired (= 0.63.2)
    - React-Core (= 0.63.2)
  - React (0.63.2):
    - React-Core (= 0.63.2)
    - React-Core/DevSupport (= 0.63.2)
    - React-Core/RCTWebSocket (= 0.63.2)
    - React-RCTActionSheet (= 0.63.2)
    - React-RCTAnimation (= 0.63.2)
    - React-RCTBlob (= 0.63.2)
    - React-RCTImage (= 0.63.2)
    - React-RCTLinking (= 0.63.2)
    - React-RCTNetwork (= 0.63.2)
    - React-RCTSettings (= 0.63.2)
    - React-RCTText (= 0.63.2)
    - React-RCTVibration (= 0.63.2)
  - React-callinvoker (0.63.2)
  - React-Core (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default (= 0.63.2)
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/CoreModulesHeaders (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/Default (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/DevSupport (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default (= 0.63.2)
    - React-Core/RCTWebSocket (= 0.63.2)
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - React-jsinspector (= 0.63.2)
    - Yoga
  - React-Core/RCTActionSheetHeaders (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/RCTAnimationHeaders (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/RCTBlobHeaders (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/RCTImageHeaders (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/RCTLinkingHeaders (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/RCTNetworkHeaders (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/RCTSettingsHeaders (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/RCTTextHeaders (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/RCTVibrationHeaders (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-Core/RCTWebSocket (0.63.2):
    - Folly (= 2020.01.13.00)
    - glog
    - React-Core/Default (= 0.63.2)
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-jsiexecutor (= 0.63.2)
    - Yoga
  - React-CoreModules (0.63.2):
    - FBReactNativeSpec (= 0.63.2)
    - Folly (= 2020.01.13.00)
    - RCTTypeSafety (= 0.63.2)
    - React-Core/CoreModulesHeaders (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-RCTImage (= 0.63.2)
    - ReactCommon/turbomodule/core (= 0.63.2)
  - React-cxxreact (0.63.2):
    - boost-for-react-native (= 1.63.0)
    - DoubleConversion
    - Folly (= 2020.01.13.00)
    - glog
    - React-callinvoker (= 0.63.2)
    - React-jsinspector (= 0.63.2)
  - React-jsi (0.63.2):
    - boost-for-react-native (= 1.63.0)
    - DoubleConversion
    - Folly (= 2020.01.13.00)
    - glog
    - React-jsi/Default (= 0.63.2)
  - React-jsi/Default (0.63.2):
    - boost-for-react-native (= 1.63.0)
    - DoubleConversion
    - Folly (= 2020.01.13.00)
    - glog
  - React-jsiexecutor (0.63.2):
    - DoubleConversion
    - Folly (= 2020.01.13.00)
    - glog
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
  - React-jsinspector (0.63.2)
  - React-RCTActionSheet (0.63.2):
    - React-Core/RCTActionSheetHeaders (= 0.63.2)
  - React-RCTAnimation (0.63.2):
    - FBReactNativeSpec (= 0.63.2)
    - Folly (= 2020.01.13.00)
    - RCTTypeSafety (= 0.63.2)
    - React-Core/RCTAnimationHeaders (= 0.63.2)
    - React-jsi (= 0.63.2)
    - ReactCommon/turbomodule/core (= 0.63.2)
  - React-RCTBlob (0.63.2):
    - FBReactNativeSpec (= 0.63.2)
    - Folly (= 2020.01.13.00)
    - React-Core/RCTBlobHeaders (= 0.63.2)
    - React-Core/RCTWebSocket (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-RCTNetwork (= 0.63.2)
    - ReactCommon/turbomodule/core (= 0.63.2)
  - React-RCTImage (0.63.2):
    - FBReactNativeSpec (= 0.63.2)
    - Folly (= 2020.01.13.00)
    - RCTTypeSafety (= 0.63.2)
    - React-Core/RCTImageHeaders (= 0.63.2)
    - React-jsi (= 0.63.2)
    - React-RCTNetwork (= 0.63.2)
    - ReactCommon/turbomodule/core (= 0.63.2)
  - React-RCTLinking (0.63.2):
    - FBReactNativeSpec (= 0.63.2)
    - React-Core/RCTLinkingHeaders (= 0.63.2)
    - React-jsi (= 0.63.2)
    - ReactCommon/turbomodule/core (= 0.63.2)
  - React-RCTNetwork (0.63.2):
    - FBReactNativeSpec (= 0.63.2)
    - Folly (= 2020.01.13.00)
    - RCTTypeSafety (= 0.63.2)
    - React-Core/RCTNetworkHeaders (= 0.63.2)
    - React-jsi (= 0.63.2)
    - ReactCommon/turbomodule/core (= 0.63.2)
  - React-RCTSettings (0.63.2):
    - FBReactNativeSpec (= 0.63.2)
    - Folly (= 2020.01.13.00)
    - RCTTypeSafety (= 0.63.2)
    - React-Core/RCTSettingsHeaders (= 0.63.2)
    - React-jsi (= 0.63.2)
    - ReactCommon/turbomodule/core (= 0.63.2)
  - React-RCTText (0.63.2):
    - React-Core/RCTTextHeaders (= 0.63.2)
  - React-RCTVibration (0.63.2):
    - FBReactNativeSpec (= 0.63.2)
    - Folly (= 2020.01.13.00)
    - React-Core/RCTVibrationHeaders (= 0.63.2)
    - React-jsi (= 0.63.2)
    - ReactCommon/turbomodule/core (= 0.63.2)
  - ReactCommon/turbomodule/core (0.63.2):
    - DoubleConversion
    - Folly (= 2020.01.13.00)
    - glog
    - React-callinvoker (= 0.63.2)
    - React-Core (= 0.63.2)
    - React-cxxreact (= 0.63.2)
    - React-jsi (= 0.63.2)
  - RNFBApp (8.4.2):
    - Firebase/CoreOnly (~> 6.30.0)
    - React
  - RNFBAuth (9.2.2):
    - Firebase/Auth (~> 6.30.0)
    - React
    - RNFBApp
  - Yoga (1.14.0)
  - YogaKit (1.18.1):
    - Yoga (~> 1.14)

DEPENDENCIES:
  - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
  - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
  - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`)
  - Firebase/Analytics
  - Flipper (~> 0.41.1)
  - Flipper-DoubleConversion (= 1.1.7)
  - Flipper-Folly (~> 2.2)
  - Flipper-Glog (= 0.3.6)
  - Flipper-PeerTalk (~> 0.0.4)
  - Flipper-RSocket (~> 1.1)
  - FlipperKit (~> 0.41.1)
  - FlipperKit/Core (~> 0.41.1)
  - FlipperKit/CppBridge (~> 0.41.1)
  - FlipperKit/FBCxxFollyDynamicConvert (~> 0.41.1)
  - FlipperKit/FBDefines (~> 0.41.1)
  - FlipperKit/FKPortForwarding (~> 0.41.1)
  - FlipperKit/FlipperKitHighlightOverlay (~> 0.41.1)
  - FlipperKit/FlipperKitLayoutPlugin (~> 0.41.1)
  - FlipperKit/FlipperKitLayoutTextSearchable (~> 0.41.1)
  - FlipperKit/FlipperKitNetworkPlugin (~> 0.41.1)
  - FlipperKit/FlipperKitReactPlugin (~> 0.41.1)
  - FlipperKit/FlipperKitUserDefaultsPlugin (~> 0.41.1)
  - FlipperKit/SKIOSNetworkPlugin (~> 0.41.1)
  - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
  - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
  - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
  - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
  - React (from `../node_modules/react-native/`)
  - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
  - React-Core (from `../node_modules/react-native/`)
  - React-Core/DevSupport (from `../node_modules/react-native/`)
  - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
  - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
  - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
  - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
  - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
  - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
  - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
  - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
  - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
  - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
  - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
  - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
  - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
  - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
  - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
  - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
  - "RNFBApp (from `../node_modules/@react-native-firebase/app`)"
  - "RNFBAuth (from `../node_modules/@react-native-firebase/auth`)"
  - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
  trunk:
    - boost-for-react-native
    - CocoaAsyncSocket
    - CocoaLibEvent
    - Firebase
    - FirebaseAnalytics
    - FirebaseAuth
    - FirebaseCore
    - FirebaseCoreDiagnostics
    - FirebaseInstanceID
    - Flipper
    - Flipper-DoubleConversion
    - Flipper-Folly
    - Flipper-Glog
    - Flipper-PeerTalk
    - Flipper-RSocket
    - FlipperKit
    - GoogleDataTransport
    - GoogleInterchangeUtilities
    - GoogleSymbolUtilities
    - GoogleUtilities
    - GTMSessionFetcher
    - nanopb
    - OpenSSL-Universal
    - PromisesObjC
    - YogaKit

EXTERNAL SOURCES:
  DoubleConversion:
    :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
  FBLazyVector:
    :path: "../node_modules/react-native/Libraries/FBLazyVector"
  FBReactNativeSpec:
    :path: "../node_modules/react-native/Libraries/FBReactNativeSpec"
  Folly:
    :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec"
  glog:
    :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
  RCTRequired:
    :path: "../node_modules/react-native/Libraries/RCTRequired"
  RCTTypeSafety:
    :path: "../node_modules/react-native/Libraries/TypeSafety"
  React:
    :path: "../node_modules/react-native/"
  React-callinvoker:
    :path: "../node_modules/react-native/ReactCommon/callinvoker"
  React-Core:
    :path: "../node_modules/react-native/"
  React-CoreModules:
    :path: "../node_modules/react-native/React/CoreModules"
  React-cxxreact:
    :path: "../node_modules/react-native/ReactCommon/cxxreact"
  React-jsi:
    :path: "../node_modules/react-native/ReactCommon/jsi"
  React-jsiexecutor:
    :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
  React-jsinspector:
    :path: "../node_modules/react-native/ReactCommon/jsinspector"
  React-RCTActionSheet:
    :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
  React-RCTAnimation:
    :path: "../node_modules/react-native/Libraries/NativeAnimation"
  React-RCTBlob:
    :path: "../node_modules/react-native/Libraries/Blob"
  React-RCTImage:
    :path: "../node_modules/react-native/Libraries/Image"
  React-RCTLinking:
    :path: "../node_modules/react-native/Libraries/LinkingIOS"
  React-RCTNetwork:
    :path: "../node_modules/react-native/Libraries/Network"
  React-RCTSettings:
    :path: "../node_modules/react-native/Libraries/Settings"
  React-RCTText:
    :path: "../node_modules/react-native/Libraries/Text"
  React-RCTVibration:
    :path: "../node_modules/react-native/Libraries/Vibration"
  ReactCommon:
    :path: "../node_modules/react-native/ReactCommon"
  RNFBApp:
    :path: "../node_modules/@react-native-firebase/app"
  RNFBAuth:
    :path: "../node_modules/@react-native-firebase/auth"
  Yoga:
    :path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
  boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
  CocoaAsyncSocket: 694058e7c0ed05a9e217d1b3c7ded962f4180845
  CocoaLibEvent: 2fab71b8bd46dd33ddb959f7928ec5909f838e3f
  DoubleConversion: cde416483dac037923206447da6e1454df403714
  FBLazyVector: 3ef4a7f62e7db01092f9d517d2ebc0d0677c4a37
  FBReactNativeSpec: dc7fa9088f0f2a998503a352b0554d69a4391c5a
  Firebase: 210f41ca352067d83b1ba4fd2e7fb49a0c017397
  FirebaseAnalytics: 3f5358d9104adf159cc8d99b7b501e50099a39ad
  FirebaseAuth: 300433de340c1b058dbb8aec224a3f1bcfda5184
  FirebaseCore: 9a41e2de78fef10f63cee30ab10e2945266bc1fc
  FirebaseCoreDiagnostics: 7415bfb3883b3500c5a95c42b6ba66baae78f600
  FirebaseInstanceID: 2d0518b1378fe9d685ef40cbdd63d2fdc1125339
  Flipper: 33585e2d9810fe5528346be33bcf71b37bb7ae13
  Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
  Flipper-Folly: c12092ea368353b58e992843a990a3225d4533c3
  Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6
  Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
  Flipper-RSocket: 64e7431a55835eb953b0bf984ef3b90ae9fdddd7
  FlipperKit: bc68102cd4952a258a23c9c1b316c7bec1fecf83
  Folly: b73c3869541e86821df3c387eb0af5f65addfab4
  glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3
  GoogleDataTransport: e85fb700c9b027079ce182c3d08e12e0f9618bb4
  GoogleInterchangeUtilities: d5bc4d88d5b661ab72f9d70c58d02ca8c27ad1f7
  GoogleSymbolUtilities: 631ee17048aa5e9ab133470d768ea997a5ef9b96
  GoogleUtilities: 7f2f5a07f888cdb145101d6042bc4422f57e70b3
  GTMSessionFetcher: 6f5c8abbab8a9bce4bb3f057e317728ec6182b10
  nanopb: 59317e09cf1f1a0af72f12af412d54edf52603fc
  OpenSSL-Universal: 8b48cc0d10c1b2923617dfe5c178aa9ed2689355
  PromisesObjC: b14b1c6b68e306650688599de8a45e49fae81151
  RCTRequired: f13f25e7b12f925f1f6a6a8c69d929a03c0129fe
  RCTTypeSafety: 44982c5c8e43ff4141eb519a8ddc88059acd1f3a
  React: e1c65dd41cb9db13b99f24608e47dd595f28ca9a
  React-callinvoker: 552a6a6bc8b3bb794cf108ad59e5a9e2e3b4fc98
  React-Core: 9d341e725dc9cd2f49e4c49ad1fc4e8776aa2639
  React-CoreModules: 5335e168165da7f7083ce7147768d36d3e292318
  React-cxxreact: d3261ec5f7d11743fbf21e263a34ea51d1f13ebc
  React-jsi: 54245e1d5f4b690dec614a73a3795964eeef13a8
  React-jsiexecutor: 8ca588cc921e70590820ce72b8789b02c67cce38
  React-jsinspector: b14e62ebe7a66e9231e9581279909f2fc3db6606
  React-RCTActionSheet: 910163b6b09685a35c4ebbc52b66d1bfbbe39fc5
  React-RCTAnimation: 9a883bbe1e9d2e158d4fb53765ed64c8dc2200c6
  React-RCTBlob: 39cf0ece1927996c4466510e25d2105f67010e13
  React-RCTImage: de355d738727b09ad3692f2a979affbd54b5f378
  React-RCTLinking: 8122f221d395a63364b2c0078ce284214bd04575
  React-RCTNetwork: 8f96c7b49ea6a0f28f98258f347b6ad218bc0830
  React-RCTSettings: 8a49622aff9c1925f5455fa340b6fe4853d64ab6
  React-RCTText: 1b6773e776e4b33f90468c20fe3b16ca3e224bb8
  React-RCTVibration: 4d2e726957f4087449739b595f107c0d4b6c2d2d
  ReactCommon: a0a1edbebcac5e91338371b72ffc66aa822792ce
  RNFBApp: 373cce42559cc7a9a42afc876746e3946de3e32e
  RNFBAuth: 701b29df3f364ef7b36992ad5e25628ce333ed89
  Yoga: 7740b94929bbacbddda59bf115b5317e9a161598
  YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: dec3e4b2aef841379b2eea7f91c3e8fa0f4d02d4

COCOAPODS: 1.9.3

core react-native

Most helpful comment

If using the above solution, and still importing modules via npm, to fix the pod install error where CocoaPods isn't able to find compatible versions for pod "Firebase/CoreOnly", be sure to specify the version of the FirebaseSDK by sticking $FirebaseSDKVersion = '6.32.0'(basically the version that matches the snapshot) in the top of your Podfile and try again. This has worked for me at least.

All 14 comments

Hey @curtisburns, can you try to isolate this in a reproducible example and then share that with us? Alternatively if you're able to you can just share your whole RN project as-is.

Hey @morganchen12, I've set up a fresh project, here's the repo. When running build, this is what I'm getting currently:

`In file included from /Users/curtisburns/development/personal/test/ios/Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/FIRCoreDiagnostics.m:24:
/Users/curtisburns/development/personal/test/ios/Pods/FirebaseCoreDiagnostics/GoogleUtilities/Logger/Private/GULLogger.h:22:9: fatal error: 'GoogleUtilities/GULLoggerLevel.h' file not found

import

    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.`

Thanks

@curtisburns It looks like you experience the issue with CoreDiagnostics internal headers added as public by Cocoapods. The issue was fixed in #6442. The fix is planned for the next release.

@curtisburns same problem here! Do you resolved your problem?

@italomota The fix is in master branch and is being tested for the next release (should be public mid next week). If you would like to test it on your end, you may install FirebaseCoreDiagnostics and GoogleDataTransport SDKs from the release branch by specifying the following in your Podfile:

pod 'FirebaseCoreDiagnostics', :git=>'https://github.com/firebase/firebase-ios-sdk.git', :branch=>'release-6.33.0'
pod 'GoogleDataTransport', :git=>'https://github.com/firebase/firebase-ios-sdk.git', :branch=>'release-6.33.0'

Your feedback is appreciated.

Thanks, @maksymmalyhin. Had issues at first with the provided solution but started a fresh project and tried again and all looks to be building fine. Thanks for the help!

@maksymmalyhin Will the fix next week be implemented to modules installed via npm, so @react-native-firebase/app, or will I have to install via the Podfile?

If using the above solution, and still importing modules via npm, to fix the pod install error where CocoaPods isn't able to find compatible versions for pod "Firebase/CoreOnly", be sure to specify the version of the FirebaseSDK by sticking $FirebaseSDKVersion = '6.32.0'(basically the version that matches the snapshot) in the top of your Podfile and try again. This has worked for me at least.

@curtisburns The fix will be deployed to Firebase's CocoaPods, SPM, and binary distributions. React Native maintainers will have to update their dependency on the underlying Firebase SDK manually, but as you mentioned you should be able to manually pull in the update via the Podfile.

@italomota The fix is in master branch and is being tested for the next release (should be public mid next week). If you would like to test it on your end, you may install FirebaseCoreDiagnostics and GoogleDataTransport SDKs from the release branch by specifying the following in your Podfile:

pod 'FirebaseCoreDiagnostics', :git=>'https://github.com/firebase/firebase-ios-sdk.git', :branch=>'release-6.33.0'
pod 'GoogleDataTransport', :git=>'https://github.com/firebase/firebase-ios-sdk.git', :branch=>'release-6.33.0'

Your feedback is appreciated.

@maksymmalyhin worked fine for me. Thank you!

If using the above solution, and still importing modules via npm, to fix the pod install error where CocoaPods isn't able to find compatible versions for pod "Firebase/CoreOnly", be sure to specify the version of the FirebaseSDK by sticking $FirebaseSDKVersion = '6.32.0'(basically the version that matches the snapshot) in the top of your Podfile and try again. This has worked for me at least.

Thank you! This worked for me 馃憤

If using the above solution, and still importing modules via npm, to fix the pod install error where CocoaPods isn't able to find compatible versions for pod "Firebase/CoreOnly", be sure to specify the version of the FirebaseSDK by sticking $FirebaseSDKVersion = '6.32.0'(basically the version that matches the snapshot) in the top of your Podfile and try again. This has worked for me at least.

Thank you! This worked for me 馃憤

If using the above solution, and still importing modules via npm, to fix the pod install error where CocoaPods isn't able to find compatible versions for pod "Firebase/CoreOnly", be sure to specify the version of the FirebaseSDK by sticking $FirebaseSDKVersion = '6.32.0'(basically the version that matches the snapshot) in the top of your Podfile and try again. This has worked for me at least.

Thank you! This worked for me 馃憤

It's working with me.$FirebaseSDKVersion = '6.33.0'
and pod 'FirebaseCoreDiagnostics', :git=>'https://github.com/firebase/firebase-ios-sdk.git', :branch=>'release-6.33.0'
pod 'GoogleDataTransport', :git=>'https://github.com/firebase/firebase-ios-sdk.git', :branch=>'release-6.33.0'

If using the above solution, and still importing modules via npm, to fix the pod install error where CocoaPods isn't able to find compatible versions for pod "Firebase/CoreOnly", be sure to specify the version of the FirebaseSDK by sticking $FirebaseSDKVersion = '6.32.0'(basically the version that matches the snapshot) in the top of your Podfile and try again. This has worked for me at least.

Thank you! This worked for me 馃憤

If using the above solution, and still importing modules via npm, to fix the pod install error where CocoaPods isn't able to find compatible versions for pod "Firebase/CoreOnly", be sure to specify the version of the FirebaseSDK by sticking $FirebaseSDKVersion = '6.32.0'(basically the version that matches the snapshot) in the top of your Podfile and try again. This has worked for me at least.

Thank you! This worked for me 馃憤

It's working with me.$FirebaseSDKVersion = '6.33.0'
and pod 'FirebaseCoreDiagnostics', :git=>'https://github.com/firebase/firebase-ios-sdk.git', :branch=>'release-6.33.0'
pod 'GoogleDataTransport', :git=>'https://github.com/firebase/firebase-ios-sdk.git', :branch=>'release-6.33.0'

It also worked for me.

The fix has been published and there should no longer be a need to specify a branch in the Podfile. pod update should be sufficient.

If you're still running into the issue, try the following:

  • pod deintegrate
  • Verify all Firebase and Google references are removed from the Xcode project file
  • pod update
Was this page helpful?
0 / 5 - 0 ratings