invertase / react-native-firebase-starter

DEPRECATED: For RNFB v5 only.
https://rnfirebase.io/docs
Other
1.17k stars 334 forks source link

[FIRApp configure] use of undeclared identifier firapp #148

Closed ashish3303 closed 3 years ago

ashish3303 commented 3 years ago

Hello,

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

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

mikehardy commented 3 years ago

I don't believe the starter is updated. For a full throwaway demo, try this: https://github.com/mikehardy/rnfbdemo/blob/master/make-demo-v6.sh