无法在Xcode8上构建适用于iOS的Facebook SDK

时间:2017-06-22 19:26:44

标签: ios xcode8 fbsdk

我第一次尝试添加Facebook分析,但在Objective C项目中出现此错误

  

使用未声明的标识符'applicationDidBecomeaAtive“enter image description here

我的步骤: 1-复制Bolts.framework和FBSDKCoreKit.framework

2-拷贝到AppDelegate.m

#import <FBSDKCoreKit/FBSDKCoreKit.h>

3-但这些行中的错误

    - (void)applicationDidBecomeActive:(UIApplication *)application {
        [FBSDKAppEvents activateApp];
    }

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        [[FBSDKApplicationDelegate sharedInstance] application:application
                                 didFinishLaunchingWithOptions:launchOptions];
        return YES;
    }

    - (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
    return [[FBSDKApplicationDelegate sharedInstance] application:application
                                                          openURL:url
                                                sourceApplication:sourceApplication
                                                       annotation:annotation];
}

1 个答案:

答案 0 :(得分:0)

.tablepress-id-4 { 
    counter-reset: rowNumber; 
} 
.tablepress-id-4 tr:not(:first-child) { 
    counter-increment: rowNumber; 
} 
.tablepress-id-4 tr td:first-child::before { 
    content: counter(rowNumber); 
    min-width: 1em; 
    margin-right: .5em; 
}