code: function setEntitlements(file, entitlements) {
      const plistContent = plist.build(entitlements);
  
      mkpath.sync(path.dirname(file));
  
      fs.writeFileSync(file, plistContent, "utf8");
    }
docs: save entitlements