简体   繁体   中英

undeclared identifier 'FBAppCall' 'FBDialogs'

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.

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.

did you add

#import <FacebookSDK/FacebookSDK.h>

in your AppDelegate.m file?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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