简体   繁体   English

将Facebook与iOS集成

[英]Integrating Facebook with iOS

I get all these errors and about 18 more when i try to integrate facebook to my application. 当我尝试将facebook集成到我的应用程序时,我得到了所有这些错误以及大约18个错误。

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:

Im using the latest facebook instructions on how to add facebook to my page but i am working with iOS 4.3 and above. 我使用最新的Facebook说明如何将Facebook添加到我的页面,但我正在使用iOS 4.3及更高版本。 SO it needs to cater to 4.3. 所以它需要迎合4.3。 I have set Accounts.framework to optional. 我已将Accounts.framework设置为可选。 Any one knows what these erros mean? 谁知道这些错误是什么意思? Ive also tried adding any other implementation files that are not linked. 我还尝试添加任何其他未链接的实现文件。

The errors are generated everytime i access FBSession or FBConnect etc. 每次访问FBSession或FBConnect等时都会生成错误。

For the record: we expect you to use XCode 4.5 for developing with the Facebook SDK 3.1 as described here 备案:我们希望您使用的XCode 4.5与Facebook的SDK 3.1开发的描述在这里

Account.framework, Social.framework and AdSupport.framework are all required (as described here ) but use the 'optional' flag if you want to build for older iOS versions too. Account.framework,Social.framework和AdSupport.framework程式都需要(如描述在这里 ),但如果你想建立对老年人的IOS版本也使用“可选”标志。

Good luck. 祝好运。

使用Account.framework,您还必须添加Social.framework和AdSupport.framework。

如果您从另一个项目中拖放Adsuport,Accounts或Social库,并选择“将项目复制到目标组的文件夹”,AdSuport和社交目录将创建到您的应用程序源文件夹中,您将收到此链接器错误,删除目录并添加库从项目的Buld Phases - > Link Binary,您可能还需要添加libsqlite3.dylib

I think the Accounts.framework needs to be required. 我认为需要Accounts.framework。 But it is only implemented in iOS 5 and later see developer reference for more information. 但它仅在iOS 5中实现,稍后会查看开发人员参考以获取更多信息。

Solved this by upgrading to xcode 4.5.1 and then adding the social and adsupport framework and also the -lsqlitee3 or so as stated. 通过升级到xcode 4.5.1然后添加社交和adsupport框架以及所述的-lsqlitee3来解决这个问题。 I did add lsqlite3 before but it said multiple values on top so i just took the unnecessary for base sdk comments out and it worked. 之前我确实添加了lsqlite3,但是它在顶部说了多个值,所以我只需要不必要的基本sdk注释就可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM