lib/cocoapods/installer/target_installer/pod_target_installer.rb
# Adds the resources of the Pods to the Pods project.
#
# @note   The source files are grouped by Pod and in turn by subspec
#         (recursively) in the resources group.
#
# @return [void]
#
Adds the resources of the Pods to the Pods project.
Adds the resources of the Pods to the Pods project .
def add_resources_bundle_targets
        target.file_accessors.each do |file_accessor|
          file_accessor.resource_bundles.each do |bundle_name, paths|
            if bundle_target = project.targets.find { |target| target.name == bundle_name }
              native_target.add_dependency(bundle_target)
              next
            end
            file_references = paths.map { |sf| project.reference_for_path(sf) }
            bundle_target = project.new_resources_bundle(bundle_name, file_accessor.spec_consumer.platform_name)
            bundle_target.add_resources(file_references)
            target.user_build_configurations.each do |bc_name, type|
              bundle_target.add_build_configuration(bc_name, type)
            end
            native_target.add_dependency(bundle_target)
          end
        end
      end
def add_resources_bundle_targets target . file_accessors . each do | file_accessor | file_accessor . resource_bundles . each do | bundle_name , paths | if bundle_target = project . targets . find { | target | target . name == bundle_name } native_target . add_dependency ( bundle_target ) next end file_references = paths . map { | sf | project . reference_for_path ( sf ) } bundle_target = project . new_resources_bundle ( bundle_name , file_accessor . spec_consumer . platform_name ) bundle_target . add_resources ( file_references ) target . user_build_configurations . each do | bc_name , type | bundle_target . add_build_configuration ( bc_name , type ) end native_target . add_dependency ( bundle_target ) end end end
Adds the resources of the Pods to the Pods project.
Adds the resources of the Pods to the Pods project .
# Add a dependency on an existing Resource Bundle target if possible
None
void
note
The source files are grouped by Pod and in turn by subspec (recursively) in the resources group.
The source files are grouped by Pod and in turn by subspec ( recursively ) in the resources group .