简体   繁体   中英

Swift 4 + Xcode 9 + Could not build Objective-C module 'FBSDKLoginKit'

Getting an error in importing FB SDK files. I used cocoa pods to install FB SDK. I tried to create a FB LogIn Authentication module in the app. Anyone solved the issue. I just visited many stack overflow links and none can solve my issue

I think you have error setting pods, check steps with project files here:

https://github.com/mohammedjamalhadi/FBLogin

Got a Solution... Just Use these NEW pods

pod 'FacebookCore'
pod 'FacebookLogin'

Earlier I used these pods

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

Also slight change in the Import Statements

import FacebookLogin
import FBSDKLoginKit
import FBSDKCoreKit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM