I am trying to add the Facebook login feature using FBSDKCoreKit
and FBSDKLogin
. When I try to import these two framework to my AppDelegate
Looks like you also have to add to the Bridging-Header.h file:
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
#import <FBSDKShareKit/FBSDKShareKit.h>
The use of Bridging-Header.h is only needed when you use the Objective-C version of the framework files. However, the Swift tutorials on the Facebook site do leave out key steps for using the Swift-built framework files, specifically the AppDelegate adjustments after importing FBSDKCoreKit there.
if you are using pods then just delete all pod file and related folders and start from the first step
init pod
.
then open that pod file and add following framework
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
then pod install
and import it to the swift file and enjoy :)
and if you are directly add folder to your project then make sure that 'copy if needed' is marked
I have solved this problem by copying the frameworks to the application's folder. Your application does not know the path of the frameworks.
What fixed it for me was removing the pods folder and running the install command again:
rm -Rf Pods
pod install
This fixed it for me: Make sure to Clean and Build your project after running the Pod Install.
From menu: Product/ clean & then build.
Please try opening the project using .xcworkspce not with .xcodeproj As workspace load all the depencies.