Method: Xcodeproj::Project::Object::XCConfigurationList#set_setting

Defined in:
lib/xcodeproj/project/object/configuration_list.rb

#set_setting(key, value) ⇒ void

This method returns an undefined value.

Sets the given value for the build setting associated with the given key across all the build configurations.

Parameters:

  • key (String)

    the key of the build setting.

  • value (String)

    the value for the build setting.



94
95
96
97
98
# File 'lib/xcodeproj/project/object/configuration_list.rb', line 94

def set_setting(key, value)
  build_configurations.each do |bc|
    bc.build_settings[key] = value
  end
end