Podspec - 排除除子文件夹之外的所有内容

2024-04-19

我有这样的结构

target_files/
├──target1/
├──target2/
└──target3/

例如,我只想包含“target2”并排除其他目标。我如何编写spec.exclude_files?

我找到了这个排除文件的示例,但我不明白如何为整个文件夹编写它。

spec.exclude_files = '_private/**/*.{h,m}'


spec.source_files = [ 'target_files/**' ]
spec.exclude_files = [ 'target_files/target1/**', 'target_files/target3/**' ]

或者对于您询问的情况,更简单地说:

spec.source_files = [ 'target_files/target2/**' ]

参考 https://guides.cocoapods.org/syntax/podspec.html#group_file_patterns

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Podspec - 排除除子文件夹之外的所有内容 的相关文章

随机推荐