FBSDKLoginManager:架构x86_64 +链接器命令的未定义符号失败,退出代码为1 [英] FBSDKLoginManager: undefined symbols for architecture x86_64 + linker command failed with exit code 1

查看:408
本文介绍了FBSDKLoginManager:架构x86_64 +链接器命令的未定义符号失败,退出代码为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将Facebook iOS SDK升级到v.4.0.1并且我收到了以下错误:

I just upgraded Facebook iOS SDK to v.4.0.1 and I got these errors:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_FBSDKLoginManager", referenced from:
      objc-class-ref in Controller1.o
      objc-class-ref in AppDelegate.o
      objc-class-ref in Controller2.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已经尝试更改链接器:使用 -all_load 我得到了相同的错误,而使用 -force_load 它变为ld:找不到文件:-fobjc-arc。任何解决方案?

I already tried to change linkers: with -all_load I get the same error, while with -force_load it becomes "ld: file not found: -fobjc-arc". Any solutions?

推荐答案

我遇到了同样的问题。如果您要将Facebook登录添加到您的应用程序(我认为您是这样),您还需要将 FBSDKLoginKit.framework 文件拖到添加<的Xcode项目中/ strong>到 FBSDKCoreKit.framework文件

I ran into the same problem. If you're adding Facebook Login to your app (which I presume you are) you also need to drag the FBSDKLoginKit.framework file into your Xcode project in addition to the FBSDKCoreKit.framework file.

Facebook的SDK入门页面上的当前说明忘记提及这个。在版本< SDK的4个,只有一个文件可以拖入你的项目。

The current instructions on Facebook's SDK Getting Started page forget to mention this. In version < 4 of the SDK, there was just one file to drag in to your project.

这篇关于FBSDKLoginManager:架构x86_64 +链接器命令的未定义符号失败,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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