class Xcodeproj::XCScheme::LaunchAction


This class wraps the LaunchAction node of a .xcscheme XML file

def allow_location_simulation=(flag)

Parameters:
  • flag (Bool) --
def allow_location_simulation=(flag)
  @xml_element.attributes['allowLocationSimulation'] = bool_to_string(flag)
end

def allow_location_simulation?

Returns:
  • (Bool) -
def allow_location_simulation?
  string_to_bool(@xml_element.attributes['allowLocationSimulation'])
end

def buildable_product_runnable

Returns:
  • (BuildableProductRunnable) -
def buildable_product_runnable
  BuildableProductRunnable.new(@xml_element.elements['BuildableProductRunnable'], 0)
end

def buildable_product_runnable=(runnable)

Parameters:
  • 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

Returns:
  • (CommandLineArguments) -
def command_line_arguments
  CommandLineArguments.new(@xml_element.elements[XCScheme::COMMAND_LINE_ARGS_NODE])
end

def command_line_arguments=(arguments)

Returns:
  • (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)

Parameters:
  • flag (Bool) --
def disable_main_thread_checker=(flag)
  @xml_element.attributes['disableMainThreadChecker'] = bool_to_string(flag)
end

def disable_main_thread_checker?

Returns:
  • (Bool) -
def disable_main_thread_checker?
  string_to_bool(@xml_element.attributes['disableMainThreadChecker'])
end

def environment_variables

Returns:
  • (EnvironmentVariables) -
def environment_variables
  EnvironmentVariables.new(@xml_element.elements[XCScheme::VARIABLES_NODE])
end

def environment_variables=(env_vars)

Parameters:
  • 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)

Parameters:
  • 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

Returns:
  • (String) -
def launch_automatically_substyle
  @xml_element.attributes['launchAutomaticallySubstyle']
end

def launch_automatically_substyle=(value)

Parameters:
  • flag (String) --
def launch_automatically_substyle=(value)
  @xml_element.attributes['launchAutomaticallySubstyle'] = value.to_s
end

def stop_on_every_main_thread_checker_issue=(flag)

Parameters:
  • 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?

Returns:
  • (Bool) -
def stop_on_every_main_thread_checker_issue?
  string_to_bool(@xml_element.attributes['stopOnEveryMainThreadCheckerIssue'])
end