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
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'
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.
Try to update your pod file like this