"No such module 'FBSDKCoreKit'" ViewController.swift,我该如何解决?

"No such module 'FBSDKCoreKit'" on ViewController.swift, How can I fix it?

我在 ViewController.swift 上收到“没有这样的模块 'FBSDKCoreKit'”,我该如何解决?

我现在正在尝试根据 https://www.youtube.com/watch?v=P6uZ0o6xDA4

的 youtube 视频实现 Facebook 登录功能

但是,在 ViewController.swift 上,我收到错误消息“没有这样的模块 'FBSDKCoreKit'”。 pod install后,在其他.swift文件上没有报错。只有 ViewController.swift 显示了这个。

我尝试再次执行“pod install”,因为我听说这样可以,但没有成功。 可以的话请告诉我怎么走

↓ViewController.swift

// Swift
//
// Add this to the header of your file, e.g. in ViewController.swift

import FBSDKCoreKit

// Add this to the body
class ViewController: UIViewController, LoginButtonDeleate {
    
    


    override func viewDidLoad() {
        super.viewDidLoad()
        
        if let token = AccessToken.current,
            !token.isExpired {
            let token = token.tokenString
            
            let request = FBLoginkit.GraphRequest(graphPath: "me",
                                                  parameters: ["fields": "email name"],
                                                  tokenString,
                                                  version: nil,
                                                  httpMethod: .get)
            request.start(completionHandler: { connection, result, error in
                print("\(result)")
            })
        }
        else{
            let loginButton = FBLoginButton()
            loginButton.center = view.center
            loginButton.delegate = self

            // Swift
            //
            // Extend the code sample from 6a. Add Facebook Login to Your Code
            // Add to your viewDidLoad method:
            loginButton.permissions = ["public_profile", "email"]
            view.addSubview(loginButton)
        }
        
    }
    
    func loginbutton (_ loginbutton: FBLoginbutton, didCompleteWith result: LoginManagementLoginResult?, error : Error){
        let token = result?.token?.tokenString
        
        let request = FBLoginkit.GraphRequest(graphPath: "me",
                                              parameters: ["fields": "email name"],
                                              tokenString: token,
                                              version: nil,
                                              httpMethod: .get)
        request.start(completionHandler: { connection, result, error in
            print("\(result)")
        })
        
    }
    
    func loginButtonDidLogOut(_ loginBUtton: FBLoginButton) {
    }
}

导入 FBSDKLoginKit 而不是 FBSDKCoreKit