def _AddIOSDeviceConfigurations(targets):
 for target_dict in targets.itervalues():
  toolset = target_dict['toolset']
  configs = target_dict['configurations']
  for (config_name, config_dict) in dict(configs).iteritems():
   iphoneos_config_dict = copy.deepcopy(config_dict)
   configs[(config_name + '-iphoneos')] = iphoneos_config_dict
   configs[(config_name + '-iphonesimulator')] = config_dict
   if (toolset == 'target'):
    iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos'
 return targets

def _AddIOSDeviceConfigurations ( targets ) : for target_dict in targets . itervalues ( ) : toolset = target_dict [ 'toolset' ] configs = target_dict [ 'configurations' ] for ( config_name , config_dict ) in dict ( configs ) . iteritems ( ) : iphoneos_config_dict = copy . deepcopy ( config_dict ) configs [ ( config_name + '-iphoneos' ) ] = iphoneos_config_dict configs [ ( config_name + '-iphonesimulator' ) ] = config_dict if ( toolset == 'target' ) : iphoneos_config_dict [ 'xcode_settings' ] [ 'SDKROOT' ] = 'iphoneos' return targets
clone all targets and append -iphoneos to the name .