class Xcake::BuildPhase
This class is used to describe a build phase for a Xcode
project; This forms part of the DSL and is usually stored in files named ‘Cakefile`.
Public Class Methods
new() { |self| ... }
click to toggle source
@param [Proc] block
an optional block that configures the build phase through the DSL.
@example Creating a Build Phase.
BuildPhase.new do |p| p.name "test" end
# File lib/xcake/dsl/build_phase.rb, line 16 def initialize yield(self) if block_given? end
Public Instance Methods
build_phase_type()
click to toggle source
This method is called when generating the build phases subclasses should implement this to allow xcake to know what native build phase type this DSL Object represents
# File lib/xcake/dsl/build_phase.rb, line 24 def build_phase_type raise 'build_phase_type not implemented' end
configure_native_build_phase(_native_build_phase, _context)
click to toggle source
This method is called when generating the build phases subclasses should implement this to handle the configuration of the build phase
# File lib/xcake/dsl/build_phase.rb, line 32 def configure_native_build_phase(_native_build_phase, _context) raise 'configure_native_build_phase not implemented' end