class Xcodeproj::XCScheme::LaunchAction
This class wraps the LaunchAction node of a .xcscheme XML file
def allow_location_simulation=(flag)
-
flag(Bool) --
def allow_location_simulation=(flag) @xml_element.attributes['allowLocationSimulation'] = bool_to_string(flag) end
def allow_location_simulation?
-
(Bool)-
def allow_location_simulation? string_to_bool(@xml_element.attributes['allowLocationSimulation']) end
def buildable_product_runnable
-
(BuildableProductRunnable)-
def buildable_product_runnable BuildableProductRunnable.new(@xml_element.elements['BuildableProductRunnable'], 0) end
def buildable_product_runnable=(runnable)
-
runnable(BuildableProductRunnable) --
def buildable_product_runnable=(runnable) @xml_element.delete_element('BuildableProductRunnable') @xml_element.add_element(runnable.xml_element) if runnable end
def command_line_arguments
-
(CommandLineArguments)-
def command_line_arguments CommandLineArguments.new(@xml_element.elements[XCScheme::COMMAND_LINE_ARGS_NODE]) end
def command_line_arguments=(arguments)
-
(CommandLineArguments)- arguments
def command_line_arguments=(arguments) @xml_element.delete_element(XCScheme::COMMAND_LINE_ARGS_NODE) @xml_element.add_element(arguments.xml_element) if arguments arguments end
def disable_main_thread_checker=(flag)
-
flag(Bool) --
def disable_main_thread_checker=(flag) @xml_element.attributes['disableMainThreadChecker'] = bool_to_string(flag) end
def disable_main_thread_checker?
-
(Bool)-
def disable_main_thread_checker? string_to_bool(@xml_element.attributes['disableMainThreadChecker']) end
def environment_variables
-
(EnvironmentVariables)-
def environment_variables EnvironmentVariables.new(@xml_element.elements[XCScheme::VARIABLES_NODE]) end
def environment_variables=(env_vars)
-
env_vars(EnvironmentVariables, nil) --
def environment_variables=(env_vars) @xml_element.delete_element(XCScheme::VARIABLES_NODE) @xml_element.add_element(env_vars.xml_element) if env_vars env_vars end
def initialize(node = nil)
-
node(REXML::Element) --
def initialize(node = nil) create_xml_element_with_fallback(node, 'LaunchAction') do # Add some attributes (that are not handled by this wrapper class yet but expected in the XML) @xml_element.attributes['selectedDebuggerIdentifier'] = 'Xcode.DebuggerFoundation.Debugger.LLDB' @xml_element.attributes['selectedLauncherIdentifier'] = 'Xcode.DebuggerFoundation.Launcher.LLDB' @xml_element.attributes['launchStyle'] = '0' @xml_element.attributes['useCustomWorkingDirectory'] = bool_to_string(false) @xml_element.attributes['ignoresPersistentStateOnLaunch'] = bool_to_string(false) @xml_element.attributes['debugDocumentVersioning'] = bool_to_string(true) @xml_element.attributes['debugServiceExtension'] = 'internal' @xml_element.add_element('AdditionalOptions') # Setup default values for other (handled) attributes self.build_configuration = 'Debug' self.allow_location_simulation = true end end
def launch_automatically_substyle
-
(String)-
def launch_automatically_substyle @xml_element.attributes['launchAutomaticallySubstyle'] end
def launch_automatically_substyle=(value)
-
flag(String) --
def launch_automatically_substyle=(value) @xml_element.attributes['launchAutomaticallySubstyle'] = value.to_s end
def stop_on_every_main_thread_checker_issue=(flag)
-
flag(Bool) --
def stop_on_every_main_thread_checker_issue=(flag) @xml_element.attributes['stopOnEveryMainThreadCheckerIssue'] = bool_to_string(flag) end
def stop_on_every_main_thread_checker_issue?
-
(Bool)-
def stop_on_every_main_thread_checker_issue? string_to_bool(@xml_element.attributes['stopOnEveryMainThreadCheckerIssue']) end