[英]Can’t build app with the Facebook SDK 3.1 on iOS 6
I have integrated latest facebook sdk for ios 6 and configured it as done for previous ios version but it is giving me error that is listed below: 我已经为ios 6集成了最新的facebook sdk,并已将其配置为对以前的ios版本进行了操作,但是它给了我以下错误:
Undefined symbols for architecture i386:
"_ACAccountTypeIdentifierFacebook", referenced from:
+[FBSession renewSystemAuthorization] in FacebookSDK(FBSession.o)
"_ACFacebookAppIdKey", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceEveryone", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
"_ACFacebookAudienceFriends", referenced from:
-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] 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_$_ACAccountStore", referenced from:
objc-class-ref in FacebookSDK(FBSession.o)
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in FacebookSDK(FBSettings.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can u tell what this means and how can I resolve this...? 您能告诉我这是什么意思,我该如何解决...?
You should link Accounts.framework, Social.framework and AdSupport.framework binaries to your project. 您应该将Accounts.framework,Social.framework和AdSupport.framework二进制文件链接到您的项目。 (Target settings -> Build Phases -> Link Binaries with Libraries)
(目标设置->构建阶段->使用库链接二进制文件)
You have to link against the Accounts framework, among others. 您必须链接到Accounts框架等。 It's described in Getting Started with the Facebook SDK for iOS , RTFM.
适用于iOS的Facebook SDK入门(RTFM)中对此进行了描述。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.