قالب وردپرس درنا توس
Home / IOS Development / Firebase implementation error in my app: iOSProgramming

Firebase implementation error in my app: iOSProgramming



I create an iOS app. I need Firebase for the app. I followed the steps found here: https://www.youtube.com/watch?v=OLpYlGnHfco

I went to my app and tried to import Firebase, I got the following error message:

"Module: Firebase & # 39; not found in red. Here is the code:

      #import "AppDelegate.h"
#import "AppDelegate.h"
@import Firebase;

@interface AppDelegate ()

@end

@implementation AppDelegate

[FIRApp configure];

- (BOOL) application: (UIApplication *) application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions {
// Override point for customization after program start.
return YES;
}


- (invalid) applicationWillResignActive: (UIApplication *) application {
// Sent when the program is to be moved from active to idle mode. This may occur for certain types of temporary interference (such as an incoming phone call or SMS message) or when the user terminates the program, and it begins the transition to the background state.
// Use this method to temporarily stop ongoing tasks, disable timers and invalidate graphical rendering callbacks. Games should use this method to pause the game.
}


- (void) applicationDidEnterBackground: (UIApplication *) application {
// Use this method to release shared resources, save user data, invalid timers, and save enough program status information to restore the application to its current state if it is terminated later.
// If your application supports background export, this method is called instead of applicationWillTerminate: when the user quits.
}


- (invalid) applicationWillEnterForeground: (UIApplication *) application {
// Called as part of the transition from the background to the active state; Here you can undo many of the changes made on the background.
}


- (invalid) applicationDidBecomeActive: (UIApplication *) application {
// Restart all tasks that were paused (or not started yet) while the program was inactive. If the application was previously in the background, update the user interface if necessary.
}


- (invalid) applicationWillTerminate: (UIApplication *) application {
// Called when the program is about to end. Save data if appropriate. See also applicationDidEnterBackground:.
}


@end
@interface AppDelegate ()

@end

@implementation AppDelegate

[FIRApp configure];

- (BOOL) application: (UIApplication *) application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions {
// Override point for customization after program start.
return YES;
}


- (invalid) applicationWillResignActive: (UIApplication *) application {
// Sent when the program is to be moved from active to idle mode. This may occur for certain types of temporary interference (such as an incoming phone call or SMS message) or when the user terminates the program, and it begins the transition to the background state.
// Use this method to temporarily stop ongoing tasks, disable timers and invalidate graphical rendering callbacks. Games should use this method to pause the game.
}


- (void) applicationDidEnterBackground: (UIApplication *) application {
// Use this method to release shared resources, save user data, invalid timers, and save enough program status information to restore the application to its current state if it is terminated later.
// If your application supports background export, this method is called instead of applicationWillTerminate: when the user quits.
}


- (invalid) applicationWillEnterForeground: (UIApplication *) application {
// Called as part of the transition from the background to the active state; Here you can undo many of the changes made on the background.
}


- (invalid) applicationDidBecomeActive: (UIApplication *) application {
// Restart all tasks that were paused (or not started yet) while the program was inactive. If the application was previously in the background, update the user interface if necessary.
}


- (invalid) applicationWillTerminate: (UIApplication *) application {
// Called when the program is about to end. Save data if appropriate. See also applicationDidEnterBackground:.
}


@end

Note that this is in AppDelegate.m

Where did I get up and how do I fix this?

Thank you for your help.


Source link