question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FirebaseCore/FIRApp.h not found

See original GitHub issue

I am unable to build my app I’m getting FirebaseCore/FIREApp.h not found

I have tried this on a new project as well

my pod file is as follows

  use_frameworks!
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # needed for debugging
    # Add any other subspecs you want to use in your project
  ]

  pod 'Firebase/Core'
  pod 'Firebase/Messaging'

the output is

Using Firebase (3.3.0)
Using FirebaseAnalytics (3.2.1)
Using FirebaseInstanceID (1.0.7)
Using FirebaseMessaging (1.1.0)
Using GoogleIPhoneUtilities (1.2.1)
Using GoogleInterchangeUtilities (1.2.1)
Using GoogleSymbolUtilities (1.1.1)
Using GoogleUtilities (1.3.1)
Using React (0.42.3)
Using Yoga (0.42.3.React)

I am running “react-native”: “0.42”, “react-native-fcm”: “^6.2.0”

my AppDelegate.h is

#import <UIKit/UIKit.h>
@import UserNotifications;

@interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate>

@end

my AppDelegate.m is

#import "AppDelegate.h"

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

#import "RNFIRMessaging.h"

@implementation AppDelegate

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

  NSURL *jsCodeLocation;

  jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

  RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                      moduleName:@"EFGConnect"
                                               initialProperties:nil
                                                   launchOptions:launchOptions];
  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];

  // ================ FCM =============================

  [FIRApp configure];
  [[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];

  // ================================================


  return YES;
}

- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler
{
  [RNFIRMessaging willPresentNotification:notification withCompletionHandler:completionHandler];
}

- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler
{
  [RNFIRMessaging didReceiveNotificationResponse:response withCompletionHandler:completionHandler];
}

//You can skip this method if you don't want to use local notification
-(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
  [RNFIRMessaging didReceiveLocalNotification:notification];
}

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{
  [RNFIRMessaging didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
}

@end

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

12reactions
icarus-sullivancommented, Aug 3, 2017

@bulby97

This worked for me …

Newer versions may require a different set of commands though

pod update pod install --repo-update

7reactions
smontlouiscommented, Apr 9, 2017

Similar to #230

pod updateand pod update repoand everything should be fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Header file (FirebaseCore/FirebaseCore.h) not found, despite ...
I am trying to manually import and use the Firebase framework in my iOS application. I am starting off with the basic bare...
Read more >
'FirebaseCore/FirebaseCore.h' file not found #1977 - GitHub
Issue Every other build I keep getting 'FirebaseCore/FIRAnalyticsConfiguration.h' file not found. I keep going through the process of cleaning Pods folder ...
Read more >
'FirebaseCore/FirebaseCore.h' file not found while building for ...
iOS : ' FirebaseCore / FirebaseCore. h ' file not found while building for Release Mode in Xcode Version 11.5 (11E608c) [ Beautify...
Read more >
iOS Installation - React Native Firebase
Once downloaded, add the file to your iOS app using 'File > Add Files to "[YOUR ... 'Firebase.h' file not found with <angled>...
Read more >
Flutter FirebaseCore/FirebaseCore.h file not found
Error Desc 1: "fatal error: 'FirebaseCore/FirebaseCore.h' file not found" Error Desc 2: "fatal error: 'FirebaseCore/FIRApp.h' file not found ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found