class Xcodeproj::XCScheme::BuildableProductRunnable
This class wraps the BuildableProductRunnable
node of a .xcscheme XML file
A BuildableProductRunnable
is a product that is both buildable (it contains a BuildableReference
) and runnable (it can be launched and debugged)
Public Class Methods
new(target_or_node = nil, runnable_debugging_mode = nil)
click to toggle source
@param [Xcodeproj::Project::Object::AbstractTarget, REXML::Element] target_or_node
Either the Xcode target to reference, or an existing XML 'BuildableProductRunnable' node element to reference or nil to create an new, empty BuildableProductRunnable
@param [#to_s] runnable_debugging_mode
The debugging mode (usually '0')
# File lib/xcodeproj/scheme/buildable_product_runnable.rb, line 17 def initialize(target_or_node = nil, runnable_debugging_mode = nil) create_xml_element_with_fallback(target_or_node, 'BuildableProductRunnable') do self.buildable_reference = BuildableReference.new(target_or_node) if target_or_node @xml_element.attributes['runnableDebuggingMode'] = runnable_debugging_mode.to_s if runnable_debugging_mode end end
Public Instance Methods
buildable_reference()
click to toggle source
@return [BuildableReference]
The Buildable Reference this Buildable Product Runnable is gonna build and run
# File lib/xcodeproj/scheme/buildable_product_runnable.rb, line 41 def buildable_reference @buildable_reference ||= BuildableReference.new @xml_element.elements['BuildableReference'] end
buildable_reference=(ref)
click to toggle source
@param [BuildableReference] ref
Set the Buildable Reference this Buildable Product Runnable is gonna build and run
# File lib/xcodeproj/scheme/buildable_product_runnable.rb, line 48 def buildable_reference=(ref) @xml_element.delete_element('BuildableReference') @xml_element.add_element(ref.xml_element) @buildable_reference = ref end
runnable_debugging_mode()
click to toggle source
@return [String]
The Runnable debugging mode (usually either empty or equal to '0')
# File lib/xcodeproj/scheme/buildable_product_runnable.rb, line 27 def runnable_debugging_mode @xml_element.attributes['runnableDebuggingMode'] end
runnable_debugging_mode=(value)
click to toggle source
@param [String] value
Set the runnable debugging mode of this buildable product runnable
# File lib/xcodeproj/scheme/buildable_product_runnable.rb, line 34 def runnable_debugging_mode=(value) @xml_element.attributes['runnableDebuggingMode'] = value.to_s end