gpt4 book ai didi

ios - 在框架模块错误中包含非模块化 header

转载 作者:可可西里 更新时间:2023-11-01 05:26:01 25 4
gpt4 key购买 nike

试图将 ParseLiveQuery cocoapod 集成到我的项目中,但是在构建时我不断收到错误:

Include of non-modular header inside framework module error 'Bolt.BFCancellation'

enter image description here

我通过 cocoapods 安装了 ParseLiveQuery(连同 Parse)。这是我的播客文件:

use_frameworks!

pod 'ParseLiveQuery'
pod 'Parse'

post_install do |installer|
installer.pods_project.build_configuration_list.build_configurations.each do |configuration|
configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
end
end

我还在build设置中将允许非模块包含在框架模块中设置为,但仍然出现此错误。

最佳答案

我自己刚遇到这个。我将头文件添加到 Framework 的伞头,然后将其作为 Public 添加到 Headers 部分。 (我正在添加可达性库)

enter image description here

到目前为止,它似乎对我来说没有问题。

关于ios - 在框架模块错误中包含非模块化 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38423565/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com