I am trying to add the Facebook login feature using FBSDKCoreKit
and FBSDKLogin
. When I try to import these two framework to my AppDelegate
file, it shows error which is
"No such module 'FBSDKCoreKit'".
I changed Allow Non-modular Includes In Framework Modules
from NO
to YES
, but the error is still there.
I need help with coming up with a solution to resolve the error.
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
Please try opening the project using .xcworkspce not with .xcodeproj As workspace load all the depencies.
I resolved this problem by adding FacebookSDK
Directory path to the "Framework Search Paths"
Go to Build Settings and search for "framework search"
I resolved No such module 'FrameworkName'
issue with following steps:
1) Create a group, call it Framework
(optional, best practice)
2) Drag desired SDK(s) from Original SDK path to Framework
, in your case FBSDKCoreKit
and FBSDKLoginKit
3) When the dialog pops 'Choose options for adding these files:', choose following:
Additional step for Facebook SDK version 4.0:
4) Select the target in the project editor and click Build Settings, change Framework Search Paths to: ~/Documents/FacebookSDKDirectoryName
I'd like to suggest one of the easiest way.
Dada! Works like a charm!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With