lib/cocoapods/installer/target_installer.rb
# Creates a prefix header file which imports `UIKit` or `Cocoa` according
# to the platform of the target. This file also include any prefix header
# content reported by the specification of the pods.
#
# @return [void]
#
Creates a prefix header file which imports `UIKit` or `Cocoa` according
to the platform of the target. This file also include any prefix header
content reported by the specification of the pods.
Creates a prefix header file which imports ` UIKit ` or ` Cocoa ` according to the platform of the target . This file also include any prefix header content reported by the specification of the pods .
def create_prefix_header
        path = library.prefix_header_path
        UI.message "- Generating prefix header at #{UI.path(path)}" do
          generator = Generator::PrefixHeader.new(library.file_accessors, library.platform)
          generator.imports << library.target_header_path.basename
          generator.save_as(path)
          add_file_to_support_group(path)
          target.build_configurations.each do |c|
            relative_path = path.relative_path_from(sandbox.root)
            c.build_settings['GCC_PREFIX_HEADER'] = relative_path.to_s
          end
        end
      end
def create_prefix_header path = library . prefix_header_path UI . message "- Generating prefix header at #{UI.path(path)}" do generator = Generator :: PrefixHeader . new ( library . file_accessors , library . platform ) generator . imports << library . target_header_path . basename generator . save_as ( path ) add_file_to_support_group ( path ) target . build_configurations . each do | c | relative_path = path . relative_path_from ( sandbox . root ) c . build_settings [ 'GCC_PREFIX_HEADER' ] = relative_path . to_s end end end
Creates a prefix header file which imports `UIKit` or `Cocoa` according
to the platform of the target.
Creates a prefix header file which imports ` UIKit ` or ` Cocoa ` according to the platform of the target .
None
void