X $ C $Ç连接问题使用Facebook的SDK和Windows Azure的SDK时 [英] xcode linking issue when using Facebook SDK and Windows Azure SDK

查看:92
本文介绍了X $ C $Ç连接问题使用Facebook的SDK和Windows Azure的SDK时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立它采用了最新的Facebook SDK(V3.1),并在Windows Azure工具包的iOS SDK的应用程序。

I am building an app which uses the latest Facebook SDK (v3.1) and the Windows Azure iOS Toolkit SDK.

现在在Azure SDK需要添加-all_load和-ObjC标志在生成设置其他连接器旗参数。这是需要链接到的一个Objective-C包含类的静态库时修复已知的bug(见<一href=\"http://developer.apple.com/library/mac/#qa/qa1490/_index.html\">http://developer.apple.com/library/mac/#qa/qa1490/_index.html).如果没有这个设置的Azure SDK生成的运行时异常选择不承认调用某些方法时,精,问题就解决了​​。

Now the Azure SDK requires adding the -all_load and -ObjC flags to the "Other Linker Flags" parameter in Build Settings. This is required to fix the known bug when linking against an Objective-C static libraries that contains categories (see http://developer.apple.com/library/mac/#qa/qa1490/_index.html). Without this setting the Azure SDK generates runtime exceptions of "selector not recognized" when calling certain methods. Fine, problem solved.

不过,Facebook的SDK将无法建立与这些标志设置。它建造时生成以下错误:

However, the Facebook SDK will not build with these flags set. It generates the following error when building:

Undefined symbols for architecture i386:
   "_OBJC_CLASS_$_SLComposeViewController", referenced from:
      objc-class-ref in FacebookSDK(FBNativeDialogs.o)
  "_SLServiceTypeFacebook", referenced from:
      +[FBNativeDialogs composeViewControllerWithSession:handler:] in 
FacebookSDK(FBNativeDialogs.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

如何让这两个库很好地一起玩任何想法?一个库希望的标志,和其他图书馆不会设置这些标志建设。

Any ideas on how to get these two libraries to play nicely together? One library wants the flags, and the other library won't build with those flags set.

推荐答案

你有没有加入社会和会计框架,以你的项目?

Have you added the Social and Accounts Frameworks to your project?

这篇关于X $ C $Ç连接问题使用Facebook的SDK和Windows Azure的SDK时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆