Xcode: no such module 'FacebookLogin'

I followed the exact steps provided: https://developers.facebook.com/docs/swift/getting-started to use the SDK using Cocoapods .

Then I added the following code to create a log line:

 import FacebookLogin func viewDidLoad() { let loginButton = LoginButton(readPermissions: [ .PublicProfile ]) loginButton.center = view.center view.addSubview(loginButton) } 

However, I keep getting the following error:

There is no such module "FacebookLogin"

My related structures and libraries are related to Pods_Swipe.framework.

thanks

+5
source share
3 answers

I had the same problem as when using xcode 8, and I added FBSDKLoginKit.Framework to LinkLibrary in the phases of building your goal. Also, the platform in the podfile was made before 10.0.

enter image description here

+1
source

Swift 3.0

If you use use_frameworks ! flag, you must also add the Bolts pod before the FBSDKCoreKit dependency.

0
source

Follow the instructions at this link https://developers.facebook.com/docs/swift/getting-started

you can add these pods to your swap file

  • pod 'FacebookCore'
  • pod 'FacebookLogin'
  • pod 'FacebookShare'
-1
source

Source: https://habr.com/ru/post/1257853/


All Articles