undeclared identifier 'FBAppCall' 'FBDialogs'

那年仲夏 提交于 2019-12-22 17:48:07

问题


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.

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'.

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.

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..

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


回答1:


Finally found the solution.

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.




回答2:


did you add

#import <FacebookSDK/FacebookSDK.h>

in your AppDelegate.m file?



来源:https://stackoverflow.com/questions/24037583/undeclared-identifier-fbappcall-fbdialogs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!