lib/cocoapods/installer/target_installer/pod_target_installer.rb
# Adds the build files of the pods to the target and adds a reference to
# the frameworks of the Pods.
#
# @note   The Frameworks are used only for presentation purposes as the
#         xcconfig is the authoritative source about their information.
#
# @return [void]
#
Adds the build files of the pods to the target and adds a reference to
the frameworks of the Pods.
Adds the build files of the pods to the target and adds a reference to the frameworks of the Pods .
def add_files_to_build_phases
        target.file_accessors.each do |file_accessor|
          consumer = file_accessor.spec_consumer
          other_source_files = file_accessor.source_files.select { |sf| sf.extname == '.d' }
          {
            true => file_accessor.arc_source_files,
            false => file_accessor.non_arc_source_files,
          }.each do |arc, files|
            files = files - other_source_files
            flags = compiler_flags_for_consumer(consumer, arc)
            regular_file_refs = files.map { |sf| project.reference_for_path(sf) }
            native_target.add_file_references(regular_file_refs, flags)
          end
          other_file_refs = other_source_files.map { |sf| project.reference_for_path(sf) }
          native_target.add_file_references(other_file_refs, nil)
        end
      end
def add_files_to_build_phases target . file_accessors . each do | file_accessor | consumer = file_accessor . spec_consumer other_source_files = file_accessor . source_files . select { | sf | sf . extname == '.d' } { true => file_accessor . arc_source_files , false => file_accessor . non_arc_source_files , } . each do | arc , files | files = files - other_source_files flags = compiler_flags_for_consumer ( consumer , arc ) regular_file_refs = files . map { | sf | project . reference_for_path ( sf ) } native_target . add_file_references ( regular_file_refs , flags ) end other_file_refs = other_source_files . map { | sf | project . reference_for_path ( sf ) } native_target . add_file_references ( other_file_refs , nil ) end end
Adds the build files of the pods to the target and adds a reference to
the frameworks of the Pods.
Adds the build files of the pods to the target and adds a reference to the frameworks of the Pods .
None
void
note
The Frameworks are used only for presentation purposes as the xcconfig is the authoritative source about their information.
The Frameworks are used only for presentation purposes as the xcconfig is the authoritative source about their information .