Lê Khánh Vinh Lê Khánh Vinh - 1 year ago 94
iOS Question

#import <FacebookSDK/FacebookSDK.h> not found IOS objective C

seem a bit old question but I have try some solution but did not work. I doubt that is because old Facebook frame work is not working anymore. I have a

project that use
. I have copied
into project folder and add using target-build phrase - link binary with binaries. I tried to clean and build the project but still got error
#import <FacebookSDK/FacebookSDK.h>
file not found. Is there any solution for this issue? many thanks? By the way how to check version facebookSDK and see whether I need to migrate to new updated version?

Answer Source

If you are using Cocoapods i would suggest to update your FacebookSDK

to the latest with adding those 3 dependencies :

pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'

then a Pod Install from terminal to download the frameworks and finally do some changes since the new sdk is different .

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download