(self, key)
return value
Gets the build setting for key.

    All child XCConfiguration objects must have the same value set for the
    setting, or a ValueError will be raised.
Gets the build setting for key.
Gets the build setting for key .
def GetBuildSetting(self, key):
    """Gets the build setting for key.

    All child XCConfiguration objects must have the same value set for the
    setting, or a ValueError will be raised.
    """

    # TODO(mark): This is wrong for build settings that are lists.  The list
    # contents should be compared (and a list copy returned?)

    value = None
    for configuration in self._properties['buildConfigurations']:
      configuration_value = configuration.GetBuildSetting(key)
      if value is None:
        value = configuration_value
      else:
        if value != configuration_value:
          raise ValueError('Variant values for ' + key)

    return value
def GetBuildSetting ( self , key ) : # TODO(mark): This is wrong for build settings that are lists.  The list # contents should be compared (and a list copy returned?) value = None for configuration in self . _properties [ 'buildConfigurations' ] : configuration_value = configuration . GetBuildSetting ( key ) if value is None : value = configuration_value else : if value != configuration_value : raise ValueError ( 'Variant values for ' + key ) return value