【问题标题】:Could not build module 'FBSDKShareKit'无法构建模块“FBSDKShareKit”
【发布时间】:2018-07-31 19:39:51
【问题描述】:

我正在升级一些 pod,即支持ParseLiveQuery。我现在在我的一个头文件中遇到错误

无法构建模块“FBSDKShareKit”

也在我的错误中:

Pod 文件:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.3'
inhibit_all_warnings!
use_modular_headers!

workspace 'myApp'

target 'myApp' do
    pod 'ROGoogleTranslate'
    pod 'Parse', '1.16.0'
    pod 'Parse/FacebookUtils'
    pod 'ParseUI', '1.2.0'
    pod 'ParseLiveQuery'
    pod 'SocketRocket'
    pod 'Bolts', '1.9.0'
    pod 'Bolts-Swift', :git => 'https://github.com/BoltsFramework/Bolts-Swift', :commit => 'e9baa72d04521c3b25ef4fa6fef12b340953ee02'
    pod 'JSQMessagesViewController', '7.3.3'
    pod 'FBSDKCoreKit', '~> 4.28.0'
    pod 'FBSDKShareKit', '~> 4.28.0'
    pod 'FBSDKLoginKit', '~> 4.28.0'
end

我已经删除了派生数据、清理、清除了我的 Pods 目录和 Podfile.lock。有关如何修复的任何建议?

编辑:这是由包含 use_modular_headers! 引起的,这源于我在看到此错误后的行为

[!] 以下 Swift pod 尚不能集成为静态库:

Swift pod ParseLiveQuery 依赖于 ParseBolts,它们不定义模块。要选择那些生成模块映射的目标(这是在构建为静态库时从 Swift 导入它们所必需的),您可以在 Podfile 中全局设置 use_modular_headers!,或为特定依赖项指定 :modular_headers => true

【问题讨论】:

标签: facebook parse-platform facebook-sdk-4.0 fbsdk fbsdksharekit


【解决方案1】:
use_modular_headers!

为我工作

【讨论】:

    猜你喜欢
    • 2020-04-02
    • 2013-12-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-09
    • 2018-12-04
    相关资源
    最近更新 更多