Reputation: 10967
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;
}
Upvotes: 3
Views: 1943
Reputation: 707
@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>
Upvotes: 2