没有这样的模块"FBSDKLoginKit" Xcode 9 [英] No Such Module 'FBSDKLoginKit' Xcode 9

查看:263
本文介绍了没有这样的模块"FBSDKLoginKit" Xcode 9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用CocoaPods,我导入了以下框架:

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

构建项目时,它可以在iPhone上愉快地运行,没有任何错误.

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.

我已经卸下并重新安装了Pod,但似乎没有任何东西可以解决此问题. 即使删除其中一个导入语句,另一个FBSKD似乎也会失败.

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.

推荐答案

尝试一下!

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

这篇关于没有这样的模块"FBSDKLoginKit" Xcode 9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆