Tek*_*Yin 5 sdk facebook ios xcode4.5
我是iOS中的Facebook SDK新手.为什么我在构建项目时遇到此错误...
我只需从Facebook SDK的ios教程中创建一个基本步骤的新项目.
Other Linker Flags上Build Setting我尝试构建,一切都好......所以我继续在AppDelegate上编写基本实现
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
return [FBSession.activeSession handleOpenURL:url];
}
Run Code Online (Sandbox Code Playgroud)
和
#import <FacebookSDK/FacebookSDK.h>
Run Code Online (Sandbox Code Playgroud)
当我尝试构建时,错误即将发生......这是日志
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ACAccountStore", referenced from:
objc-class-ref in FacebookSDK(FBSession.o)
"_ACFacebookAudienceFriends", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAppIdKey", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACAccountTypeIdentifierFacebook", referenced from:
+[FBSession renewSystemAuthorization] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceKey", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceOnlyMe", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookPermissionsKey", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in FacebookSDK(FBSettings.o)
"_ACFacebookAudienceEveryone", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我发现这很奇怪,因为我使用相同的SDK和相同的设置Scrumptious示例,并且示例运行良好..同时我收到此错误...
任何的想法?
Tek*_*Yin 23
我得到了答案...... Facebook的IOS SDK 3.1需要更多的框架一起工作.它REQUIRE "帐户","AdSupport"和"社会"的框架,您可在iOS6的.因为Facebook SDK 3.1是基于IOS6... 创建的
注意:如果您希望应用程序也为较旧版本的操作系统构建,则应使用iOS6特定框架的OPTIONAL标志.看起来像这样.

| 归档时间: |
|
| 查看次数: |
4108 次 |
| 最近记录: |