class Xcodeproj::XCScheme::BuildAction::Entry

def add_buildable_reference(ref)

Parameters:
  • ref (BuildableReference) --
def add_buildable_reference(ref)
  @xml_element.add_element(ref.xml_element)
end

def build_for_analyzing=(flag)

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

def build_for_analyzing?

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

def build_for_archiving=(flag)

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

def build_for_archiving?

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

def build_for_profiling=(flag)

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

def build_for_profiling?

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

def build_for_running=(flag)

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

def build_for_running?

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

def build_for_testing=(flag)

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

def build_for_testing?

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

def buildable_references

Returns:
  • (Array) -
def buildable_references
  @xml_element.get_elements('BuildableReference').map do |node|
    BuildableReference.new(node)
  end
end

def initialize(target_or_node = nil)

Parameters:
  • target_or_node (Xcodeproj::Project::Object::AbstractTarget, REXML::Element) --
def initialize(target_or_node = nil)
  create_xml_element_with_fallback(target_or_node, 'BuildActionEntry') do
    # Check target type to configure the default entry attributes accordingly
    is_test_target = false
    is_app_target = false
    if target_or_node && target_or_node.is_a?(::Xcodeproj::Project::Object::PBXNativeTarget)
      test_types = [Constants::PRODUCT_TYPE_UTI[:octest_bundle],
                    Constants::PRODUCT_TYPE_UTI[:unit_test_bundle],
                    Constants::PRODUCT_TYPE_UTI[:ui_test_bundle]]
      app_types = [Constants::PRODUCT_TYPE_UTI[:application]]
      is_test_target = test_types.include?(target_or_node.product_type)
      is_app_target = app_types.include?(target_or_node.product_type)
    end
    self.build_for_analyzing = true
    self.build_for_testing   = is_test_target
    self.build_for_running   = is_app_target
    self.build_for_profiling = is_app_target
    self.build_for_archiving = is_app_target
    add_buildable_reference BuildableReference.new(target_or_node) if target_or_node
  end
end