Podspec documentation says preserve_path is for "Any file that should not be cleaned (CocoaPods cleans all files by default)."
What does it mean by "clean"?
A Podspec, or Spec, describes a version of a Pod library. One Pod, over the course of time, will have many Specs. It includes details about where the source should be fetched from, what files to use, the build settings to apply, and other general metadata such as its name, version, and description.
'Clean' means that it will delete the files that should be 'cleaned'
For example if you have a directory with a few files
If you just specify the source files as *.{h,m}
then those will be added to the project and readme.md and other.txt will be removed. If you for some reason wanted the user to be able to access one of those files you would add it to the preserve_paths
so it would not get delete.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With