class Xcodeproj::Project::Object::XCBuildConfiguration


{PBXProject} or a {PBXNativeTarget}.
by a {XCConfigurationList} which in turn might be referenced by a
Encapsulates the information a specific build configuration referenced

def debug?

Returns:
  • (Boolean) - Whether this configuration is configured for
def debug?
  gcc_preprocessor_definitions = build_settings['GCC_PREPROCESSOR_DEFINITIONS']
  gcc_preprocessor_definitions && gcc_preprocessor_definitions.include?('DEBUG=1')
end

def pretty_print

Returns:
  • (Hash{String => Hash}) - A hash suitable to display the object
def pretty_print
  data = {}
  data['Build Settings'] = sorted_build_settings
  if base_configuration_reference
    data['Base Configuration'] = base_configuration_reference.pretty_print
  end
  { name => data }
end

def sort(_options = nil)

Returns:
  • (void) -
def sort(_options = nil)
  self.build_settings = sorted_build_settings
end

def sorted_build_settings

def sorted_build_settings
  sorted = {}
  build_settings.keys.sort.each do |key|
    sorted[key] = build_settings[key]
  end
  sorted
end

def type

Returns:
  • (Symbol) - The symbolic type of this configuration, either
def type
  debug? ? :debug : :release
end