Method: Pod::Specification::DSL#preserve_paths=

Defined in:
lib/cocoapods-core/specification/dsl.rb

#preserve_paths=(preserve_paths) ⇒ Object

Any file that should not be removed after being downloaded.


By default, CocoaPods removes all files that are not matched by any of the other file pattern.

Examples:


spec.preserve_path = 'IMPORTANT.txt'

spec.preserve_paths = 'Frameworks/*.framework'

Parameters:

  • preserve_paths (String, Array<String>)

    the paths that should be not cleaned.



1527
1528
1529
1530
# File 'lib/cocoapods-core/specification/dsl.rb', line 1527

attribute :preserve_paths,
:container     => Array,
:file_patterns => true,
:singularize   => true