Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppDelegate update with Firebase

I need to add the following code to my main AppDelegate, I have 2 files called AppDelegate, AppDelegate.m, AppDelegate.h, which one do I need to edit?

Neither file has @import they both have #import

@import UIKit;
@import Firebase;

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [FIRApp configure];
  return YES;
}
like image 455
Bomber Avatar asked Jul 08 '26 17:07

Bomber


1 Answers

@import is available since iOS 7 and is an improvement on #import (see for example this blogpost for more info). You should be able to use @import Firebase;, but otherwise it'd be #import <Firebase/Firebase.h>

like image 151
Toine Heuvelmans Avatar answered Jul 11 '26 05:07

Toine Heuvelmans



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!