简体   繁体   中英

What podspec parameter to use for source file path?

I have a file hierarchy similar to this one:

File hierarchy image

And I need to capture in the visible area all the folders and files (swift and ObjC) that lie in the TestFramework. What podspec parameter to use for source file path? I try to use this:

s.source_files = "TestFramework/**/*"

Is the correct parameter I use?

Okey, s.source_files = "TestFramework/**/*" is correct parameter for my situation.

  • /** - matches directories recursively.
  • /* - matches any file.

Sometimes it is necessary to limit the type of files that should be visible. For such situations, the following parameters are used:

s.source_files = "TestFramework/**/*.{h,m,swift}"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM