4

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

无法构建模块“FBSDKShareKit”

同样在我的错误中:

在此处输入图像描述

播客文件:

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 podParseLiveQuery依赖于Parseand Bolts,它们不定义模块。要选择那些生成模块映射的目标(在构建为静态库时需要从 Swift 导入它们),您可以use_modular_headers!在 Podfile 中全局设置,或指定:modular_headers => true特定的依赖项。

4

1 回答 1

9
use_modular_headers!

为我工作

于 2019-01-08T16:21:35.370 回答