No such module 'FBSDKCoreKit' XCODE 7.4

前端 未结 12 1949
北海茫月
北海茫月 2020-12-11 03:54

I am trying to add the Facebook login feature using FBSDKCoreKit and FBSDKLogin. When I try to import these two framework to my AppDelegate

相关标签:
12条回答
  • 2020-12-11 04:18

    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.

    0 讨论(0)
  • 2020-12-11 04:23

    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

    0 讨论(0)
  • 2020-12-11 04:23

    I have solved this problem by copying the frameworks to the application's folder. Your application does not know the path of the frameworks.

    0 讨论(0)
  • 2020-12-11 04:23

    What fixed it for me was removing the pods folder and running the install command again:

    rm -Rf Pods 
    pod install
    
    0 讨论(0)
  • 2020-12-11 04:26

    This fixed it for me: Make sure to Clean and Build your project after running the Pod Install.

    From menu: Product/ clean & then build.

    0 讨论(0)
  • 2020-12-11 04:28

    Please try opening the project using .xcworkspce not with .xcodeproj As workspace load all the depencies.

    0 讨论(0)
提交回复
热议问题