FBSDKCoreKit和框架模块内部非模块头的包含错误

问题描述 投票:18回答:2

以下线程(以及许多类似的)都没有帮助我:

Include of non-modular header inside framework module

XCode6: Receiving error "Include of non-modular header inside framework module"

在尝试通过cocoapods在我的iOS项目中安装Facebook SDK时,我遇到了这个错误:

FBSDKCoreKit.h标题内:

Include of non-modular header inside framework module 'FBSDKCoreKit.FBSDKCoreKit'

enter image description here

正如我所说,我尝试了上述答案中提出的解决方案,但没有取得任何成功。

重要的是要提到这种用法在Xcode 7上正常工作。

xcode8 cocoapods-1.2
2个回答
1
投票

enter image description here

打开允许模块化标题


0
投票

升级到最新版本的CocoaPods(1.5.3),最新的Facebook SDK,删除我的Pods文件夹,并做了一个新的pod install修复了这个问题。

© www.soinside.com 2019 - 2024. All rights reserved.