hooks/lib/ios/projectEntitlements.js
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');
}
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');
}
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' ) ; }
region Work with entitlements file 
Save data to entitlements file.

@param {Object} content - data to save; JSON object that will be transformed into xml
region Work with entitlements file Save data to entitlements file .