Useful or not, from you.
react-native-firebase [FIRApp configure] use of undeclared identifier firapp


I am used @react-native-firebase/app plugin for configure react-native firebase in my IOS project And i imported firebase.h and [FIRApp configure] in AppDelegate.m file and its fine on debug application but whenever i am tried to archive my IOS application it gives me a error at the end of the archiving i.e. [FIRApp configure] use of undeclared identifier firapp. Please help me to find out from this. Here's my AppDelegate.m file

#import "AppDelegate.h"

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

#if DEBUG #import <FlipperKit/FlipperClient.h> #import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h> #import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h> #import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h> #import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h> #import <FlipperKitReactPlugin/FlipperKitReactPlugin.h> #import <Firebase.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]; }

// version of @react-native-firebase/app is 8.2.0

Thank You

That's a useful answer
Without any help

@andersonaddo Don't know about exact issue.

In debug application it works fine but when i archive it through me a error i.e. undefined FIRApp