gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 21:01:48 24 4
gpt4 key购买 nike

我有这样的结构

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/**' ]

Reference

关于ios - Podspec - 排除除子文件夹以外的所有内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48224133/

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