iosswiftxcodefbsdkfbsdkloginkit

No Such Module 'FBSDKLoginKit' Xcode 9


Using CocoaPods, I have imported the below frameworks:

platform :ios, '11.0'
use frameworks!

target '{APP NAME}' do
    pod 'Firebase'
    pod 'Firebase/Auth'
    pod 'Firebase/Core'
    pod 'Firebase/Database'
    pod 'Firebase/AdMob'
    pod 'Firebase/Messaging'
    pod 'Batch'
    pod 'FBSDKLoginKit'
    pod 'FBSDKCoreKit'
    pod 'Google-Mobile-Ads-SDK'
end

enter image description here

When I build my project, it runs happily on my iPhone with no errors.

When I try to create an Archive of the project, it shows one of the below and refuses to build the project to Archive.

No such module 'FBSDKCoreKit'
No such module 'FBSDKLoginKit'

enter image description here enter image description here

I have no idea what I'm doing wrong as nothing has changed. I haven't archived in a few months and it's suddenly stopped working.

I've removed and re-installed the Pods but nothing seems to fix the issue. Even if I remove one of the import statements the other FBSKD seems to fail.


Solution

  • Try this!

    pod 'FBSDKCoreKit', '~> 4.10.0'
    pod 'FBSDKLoginKit', '~> 4.10.0'
    pod 'FBSDKShareKit', '~> 4.10.0'