hooks/lib/ios/projectEntitlements.js
function getEntitlementsFileContent() {
  var pathToFile = pathToEntitlementsFile();
  var content;

  try {
    content = fs.readFileSync(pathToFile, 'utf8');
  } catch (err) {
    return defaultEntitlementsFile();
  }

  return plist.parse(content);
}
function getEntitlementsFileContent() {
  var pathToFile = pathToEntitlementsFile();
  var content;

  try {
    content = fs.readFileSync(pathToFile, 'utf8');
  } catch (err) {
    return defaultEntitlementsFile();
  }

  return plist.parse(content);
}
function getEntitlementsFileContent ( ) { var pathToFile = pathToEntitlementsFile ( ) ; var content ; try { content = fs . readFileSync ( pathToFile , 'utf8' ) ; } catch ( err ) { return defaultEntitlementsFile ( ) ; } return plist . parse ( content ) ; }
Read data from existing entitlements file. If none exist - default value is returned

@return {String} entitlements file content
Read data from existing entitlements file . If none exist - default value is returned