Class: ZergXcode::Objects::PBXBuildPhase

Inherits:
XcodeObject show all
Defined in:
lib/zerg_xcode/objects/pbx_build_phase.rb

Overview

Superclass for all the Xcode build phases.

Subclasses include PBXHeadersBuildPhase, PBXSourcesBuildPhase, PBXFrameworksBuildPhase, and PBXResourcesBuildPhase.

Instance Attribute Summary

Attributes inherited from XcodeObject

#archive_id, #version

Class Method Summary collapse

Methods inherited from XcodeObject

#[], #[]=, #_attr_hash, #attrs, #copy_metadata, from, #initialize, #isa, new, #shallow_copy, #visit, #visit_array, #visit_hash, #visit_once, #visit_value, #xref_key, #xref_name

Constructor Details

This class inherits a constructor from ZergXcode::XcodeObject

Class Method Details

.new_phase(isa_type) ⇒ Object

Creates a new build phase with the given isa type.


7
8
9
10
11
# File 'lib/zerg_xcode/objects/pbx_build_phase.rb', line 7

def self.new_phase(isa_type)
  self.new 'isa' => isa_type.to_s, 'dependencies' => [], 'files' => [],
           'buildActionMask' => '2147483647',
           'runOnlyForDeploymentPostprocessing' => '0' 
end