Module: Xcode::BuildFile

Defined in:
lib/xcode/build_file.rb

Overview

PBXBuildFile are entries within the project that create a link between the file and the PBXFileReference. One is created for each file added to a build target.

Class Method Summary collapse

Class Method Details

.buildfile(file_identifier, settings) ⇒ Hash

Create the properties hash for a build file with the given file reference identifier.

Parameters:

  • file_identifier (String)

    the unique identifier for the file

Returns:

  • (Hash)

    the properties hash for a default BuildFile.



17
18
19
20
21
# File 'lib/xcode/build_file.rb', line 17

def self.buildfile(file_identifier,settings)
  properties = { 'isa' => "PBXBuildFile", 'fileRef' => file_identifier }
  properties.merge!('settings' => settings) unless settings.empty?
  properties
end