examples/cordova1/plugins/branch-cordova-sdk/src/scripts/ios/updateAssociatedDomains.js
function getEntitlementFiles(preferences) {
    const files = [];
    const entitlements = path.join(
      preferences.projectRoot,
      "platforms",
      "ios",
      preferences.projectName,
      "Resources",
      `${preferences.projectName}.entitlements`
    );
    files.push(
      path.join(
        preferences.projectRoot,
        "platforms",
        "ios",
        preferences.projectName,
        `${preferences.projectName}.entitlements`
      )
    );
    files.push(entitlements);

    for (let i = 0; i < BUILD_TYPES.length; i++) {
      const buildType = BUILD_TYPES[i];
      const plist = path.join(
        preferences.projectRoot,
        "platforms",
        "ios",
        preferences.projectName,
        `Entitlements-${buildType}.plist`
      );
      files.push(plist);
    }

    return files;
  }
function getEntitlementFiles(preferences) {
    const files = [];
    const entitlements = path.join(
      preferences.projectRoot,
      "platforms",
      "ios",
      preferences.projectName,
      "Resources",
      `${preferences.projectName}.entitlements`
    );
    files.push(
      path.join(
        preferences.projectRoot,
        "platforms",
        "ios",
        preferences.projectName,
        `${preferences.projectName}.entitlements`
      )
    );
    files.push(entitlements);

    for (let i = 0; i < BUILD_TYPES.length; i++) {
      const buildType = BUILD_TYPES[i];
      const plist = path.join(
        preferences.projectRoot,
        "platforms",
        "ios",
        preferences.projectName,
        `Entitlements-${buildType}.plist`
      );
      files.push(plist);
    }

    return files;
  }
function getEntitlementFiles ( preferences ) { const files = [ ] ; const entitlements = path . join ( preferences . projectRoot , "platforms" , "ios" , preferences . projectName , "Resources" , ` ${ preferences . projectName } ` ) ; files . push ( path . join ( preferences . projectRoot , "platforms" , "ios" , preferences . projectName , ` ${ preferences . projectName } ` ) ) ; files . push ( entitlements ) ; for ( let i = 0 ; i < BUILD_TYPES . length ; i ++ ) { const buildType = BUILD_TYPES [ i ] ; const plist = path . join ( preferences . projectRoot , "platforms" , "ios" , preferences . projectName , ` ${ buildType } ` ) ; files . push ( plist ) ; } return files ; }
get the xcode .entitlements and provisioning profile .plist
get the xcode . entitlements and provisioning profile . plist