lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb
def link_headers
            UI.message '- Linking headers' do
              pod_targets.each do |pod_target|
                pod_target.file_accessors.each do |file_accessor|
                  framework_exp = /\.framework\//
                  headers_sandbox = Pathname.new(file_accessor.spec.root.name)

                  # When integrating Pod as frameworks, built Pods are built into
                  # frameworks, whose headers are included inside the built
                  # framework. Those headers do not need to be linked from the
                  # sandbox.
                  unless pod_target.requires_frameworks? && pod_target.should_build?
                    pod_target.build_headers.add_search_path(headers_sandbox, pod_target.platform)
                    sandbox.public_headers.add_search_path(headers_sandbox, pod_target.platform)

                    header_mappings(headers_sandbox, file_accessor, file_accessor.headers).each do |namespaced_path, files|
                      pod_target.build_headers.add_files(namespaced_path, files.reject { |f| f.to_path =~ framework_exp })
                    end

                    header_mappings(headers_sandbox, file_accessor, file_accessor.public_headers).each do |namespaced_path, files|
                      sandbox.public_headers.add_files(namespaced_path, files.reject { |f| f.to_path =~ framework_exp })
                    end
                  end

                  unless pod_target.requires_frameworks?
                    vendored_frameworks_header_mappings(headers_sandbox, file_accessor).each do |namespaced_path, files|
                      sandbox.public_headers.add_files(namespaced_path, files)
                    end
                  end
                end
              end
            end
          end
# Creates the link to the headers of the Pod in the sandbox.
#
# @return [void]
#
Creates the link to the headers of the Pod in the sandbox.
Creates the link to the headers of the Pod in the sandbox .
def link_headers
            UI.message '- Linking headers' do
              pod_targets.each do |pod_target|
                pod_target.file_accessors.each do |file_accessor|
                  framework_exp = /\.framework\//
                  headers_sandbox = Pathname.new(file_accessor.spec.root.name)
                  unless pod_target.requires_frameworks? && pod_target.should_build?
                    pod_target.build_headers.add_search_path(headers_sandbox, pod_target.platform)
                    sandbox.public_headers.add_search_path(headers_sandbox, pod_target.platform)
                    header_mappings(headers_sandbox, file_accessor, file_accessor.headers).each do |namespaced_path, files|
                      pod_target.build_headers.add_files(namespaced_path, files.reject { |f| f.to_path =~ framework_exp })
                    end
                    header_mappings(headers_sandbox, file_accessor, file_accessor.public_headers).each do |namespaced_path, files|
                      sandbox.public_headers.add_files(namespaced_path, files.reject { |f| f.to_path =~ framework_exp })
                    end
                  end
                  unless pod_target.requires_frameworks?
                    vendored_frameworks_header_mappings(headers_sandbox, file_accessor).each do |namespaced_path, files|
                      sandbox.public_headers.add_files(namespaced_path, files)
                    end
                  end
                end
              end
            end
          end
def link_headers UI . message '- Linking headers' do pod_targets . each do | pod_target | pod_target . file_accessors . each do | file_accessor | framework_exp = / \. framework \/ / headers_sandbox = Pathname . new ( file_accessor . spec . root . name ) unless pod_target . requires_frameworks? && pod_target . should_build? pod_target . build_headers . add_search_path ( headers_sandbox , pod_target . platform ) sandbox . public_headers . add_search_path ( headers_sandbox , pod_target . platform ) header_mappings ( headers_sandbox , file_accessor , file_accessor . headers ) . each do | namespaced_path , files | pod_target . build_headers . add_files ( namespaced_path , files . reject { | f | f . to_path =~ framework_exp } ) end header_mappings ( headers_sandbox , file_accessor , file_accessor . public_headers ) . each do | namespaced_path , files | sandbox . public_headers . add_files ( namespaced_path , files . reject { | f | f . to_path =~ framework_exp } ) end end unless pod_target . requires_frameworks? vendored_frameworks_header_mappings ( headers_sandbox , file_accessor ) . each do | namespaced_path , files | sandbox . public_headers . add_files ( namespaced_path , files ) end end end end end end
Creates the link to the headers of the Pod in the sandbox.
Creates the link to the headers of the Pod in the sandbox .
# When integrating Pod as frameworks, built Pods are built into # frameworks, whose headers are included inside the built # framework. Those headers do not need to be linked from the # sandbox.
None
void