code: function activateAssociativeDomains(xcodeProject) {
    var configurations = nonComments(xcodeProject.pbxXCBuildConfigurationSection());
    var entitlementsFilePath = pathToEntitlementsFile();
    var config;
    var buildSettings;
    var deploymentTargetIsUpdated;
  
    for (config in configurations) {
      buildSettings = configurations[config].buildSettings;
      buildSettings['CODE_SIGN_ENTITLEMENTS'] = '"' + entitlementsFilePath + '"';
  
      // if deployment target is less then the required one - increase it
      if (buildSettings['IPHONEOS_DEPLOYMENT_TARGET']) {
        if (compare(buildSettings['IPHONEOS_DEPLOYMENT_TARGET'], IOS_DEPLOYMENT_TARGET) == -1) {
          buildSettings['IPHONEOS_DEPLOYMENT_TARGET'] = IOS_DEPLOYMENT_TARGET;
          deploymentTargetIsUpdated = true;
        }
      } else {
        buildSettings['IPHONEOS_DEPLOYMENT_TARGET'] = IOS_DEPLOYMENT_TARGET;
        deploymentTargetIsUpdated = true;
      }
    }
  
    if (deploymentTargetIsUpdated) {
      console.log('IOS project now has deployment target set as: ' + IOS_DEPLOYMENT_TARGET);
    }
  
    console.log('IOS project Code Sign Entitlements now set to: ' + entitlementsFilePath);
  }
docs: region Alter project file preferences 
  Activate associated domains support in the xcode project file:
  - set deployment target to ios 9;
  - add .entitlements file to Code Sign Entitlements preference.
  
  @param {Object} xcodeProject - xcode project preferences; all changes are made in that instance