No Such Module 'FBSDKLoginKit' Xcode 9

2019-05-25 20:38发布

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.

7条回答
不美不萌又怎样
2楼-- · 2019-05-25 21:44

Try to update your pod file like this

 pod 'FacebookCore'
 pod 'FacebookLogin'
查看更多
登录 后发表回答