Method: Pod::Specification::DSL#resources=

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

#resources=(resources) ⇒ Object

A list of resources that should be copied into the target bundle.

For building the Pod as a static library, we strongly recommend library developers to adopt [resource bundles](guides.cocoapods.org/syntax/podspec.html#resource_bundles) as there can be name collisions using the resources attribute. Moreover, resources specified with this attribute are copied directly to the client target and therefore they are not optimised by Xcode.

Examples:


spec.resource = 'Resources/HockeySDK.bundle'

spec.resources = ['Images/*.png', 'Sounds/*']

Parameters:

  • resources (String, Array<String>)

    The resources shipped with the Pod.



1313
1314
1315
1316
# File 'lib/cocoapods-core/specification/dsl.rb', line 1313

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