code: function saveContentToEntitlementsFile(content) {
    var plistContent = plist.build(content);
    var filePath = pathToEntitlementsFile();
  
    // ensure that file exists
    mkpath.sync(path.dirname(filePath));
  
    // save it's content
    fs.writeFileSync(filePath, plistContent, 'utf8');
  }
docs: region Work with entitlements file 
  Save data to entitlements file.
  
  @param {Object} content - data to save; JSON object that will be transformed into xml