def MergeGlobalXcodeSettingsToSpec(global_dict, spec):
 global_xcode_settings = global_dict.get('xcode_settings', {})
 for config in spec['configurations'].values():
  if ('xcode_settings' in config):
   new_settings = global_xcode_settings.copy()
   new_settings.update(config['xcode_settings'])
   config['xcode_settings'] = new_settings

def MergeGlobalXcodeSettingsToSpec ( global_dict , spec ) : global_xcode_settings = global_dict . get ( 'xcode_settings' , { } ) for config in spec [ 'configurations' ] . values ( ) : if ( 'xcode_settings' in config ) : new_settings = global_xcode_settings . copy ( ) new_settings . update ( config [ 'xcode_settings' ] ) config [ 'xcode_settings' ] = new_settings
merges the global xcode_settings dictionary into each configuration of the target represented by spec .