如何使用模块化标头配置来构建 pod 框架的 pod 依赖项?

How to use modular headers configuration for pod dependency of my pod framework?

提问人:Amadeu Cavalcante Filho 提问时间:5/1/2020 更新时间:10/10/2023 访问量:4297

问:

我的 podspec 如下所示:

Pod::Spec.new do |s|
  s.name             = 'flutter_vlc_player'
  s.version          = '0.0.3'
  s.summary          = 'A new Flutter project.'
  s.description      = <<-DESC
A new Flutter project.
                       DESC
  s.homepage         = 'http://example.com'
  s.license          = { :file => '../LICENSE' }
  s.author           = { 'Your Company' => '[email protected]' }
  s.source           = { :path => '.' }
  s.source_files = 'Classes/**/*'
  s.public_header_files = 'Classes/**/*.h'
  s.dependency 'Flutter'

  s.dependency 'MobileVLCKit', '~> 3.3.10'
  s.static_framework = true

  s.ios.deployment_target = '9.0'
end

如何设置 ?我试着用喜欢:modular_headers => trues.dependency 'MobileVLCKit', '~> 3.3.10'

s.dependency 'MobileVLCKit', '~> 3.3.10', :modular_headers => true

以我在 podfile 中执行的相同方式,但它不起作用。

我知道我可以在 中使用,但是由于依赖性,它并没有解决非模块化标头的问题。'DEFINES_MODULE' => 'YES'pod_target_xcconfigMobileVLCKit

ios objective-c swift cocoapods podspec

评论

0赞 Paul Beusterien 5/3/2020
模块化接头问题到底是什么?我不认为 podspecs 有模块化标头选项。
0赞 Yun 1/4/2021
你解决了这个问题吗?
0赞 Amadeu Cavalcante Filho 3/16/2021
@Yun 我还没有找到任何解决方案。但是,这似乎更像是 VLCKit 的问题,而不是 cocoapods 本身。

答: 暂无答案