未声明的标识符'FBAppCall''FBDialogs' [英] undeclared identifier 'FBAppCall' 'FBDialogs'

查看:152
本文介绍了未声明的标识符'FBAppCall''FBDialogs'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近正在尝试在我们的应用程序上更新Facebook SDK.我不担心按照Facebook的升级指南的步骤进行操作.

I'm recently trying to update the Facebook SDK on our application. I had no worries following the steps fom the Upgrade guide by Facebook.

我能够毫无问题地进行编译.

I was able to compile without issues.

但是,当我退出XCode时,重新打开项目并尝试重新编译时,出现有关" FBAppCall "(未声明的标识符)的错误. SDK中的所有其他类都可以使用,除了这一类和" FBDialogs ".

However, when I quit XCode, reopen my project and try to recompile I get an error about 'FBAppCall' (undeclared identifier). All others classes from the SDK are working except this one and 'FBDialogs'.

我能够通过删除Facebook框架并再次添加来解决这些错误.但是我每次退出XCode都必须这样做.

I am able to solve those errors by deleting the Facebook framework and adding it again. But I must do it every time I quit XCode.

我尝试检查或取消选中"将项目复制到目标组的文件夹(如果需要)",但没有好运.还尝试了旧版本的Facebook SDK,但未做任何更改. 还试图徒劳地读取框架之前从project.pbxproj清除所有Facebook SDK参考.

I've tried to check or uncheck "Copy items into destination group's folder (if needed)" with no luck. Also tried older versions of Facebook SDK but it didn't changed anything. Also tried to clear all the Facebook SDK references from the project.pbxproj before readding the frameworks, in vain.

谢谢您帮助我解决这个烦人的问题.

Thank you for helping me with this annoying issue..

注意:Facebook SDK已完成了入门页面.

Note: Already did all the configuration Facebook SDK is requiring in the Getting Started page.

推荐答案

最终找到了解决方案.

由于我是从较旧的Facebook SDK进行升级的,因此我不得不从$(PROJECT_DIR)/Frameworks中删除较旧的FacebookSDK.framework文件,然后将其重新添加到XCode中.

Since I was upgrading from an older Facebook SDK, I had to delete the older FacebookSDK.framework file from $(PROJECT_DIR)/Frameworks and then re-add it in XCode.

这篇关于未声明的标识符'FBAppCall''FBDialogs'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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