From 9b3c82947f875de55336c0a2def2ac027e4d3567 Mon Sep 17 00:00:00 2001 From: Marc Bender Date: Fri, 1 Sep 2023 18:19:40 +0200 Subject: [PATCH] fix: supports now also MacCatalyst .provisioningprofile and iOS .mobileprovision Profiles are now found, also in combination with VSCode-Extension PR https://github.com/tidev/vscode-titanium/pull/1173 --- lib/provisioning.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/provisioning.js b/lib/provisioning.js index e4a7839..28b09de 100644 --- a/lib/provisioning.js +++ b/lib/provisioning.js @@ -80,7 +80,9 @@ function detect(options, callback) { enterprise: 0, distribution: 0 }, - ppRegExp = /.+\.mobileprovision$/; + + ppRegExp = /.*\.(mobileprovision|provisionprofile)$/; + if (options.watch) { var throttleTimer = null; @@ -236,7 +238,7 @@ function detect(options, callback) { team: plist.TeamIdentifier || null, entitlements: entitlements, // TODO: remove all of the entitlements below and just use the `entitlements` property - appId: (entitlements['application-identifier'] || '').replace(appPrefix + '.', ''), + appId: (entitlements['application-identifier'] || entitlements['com.apple.application-identifier'] || '').replace(appPrefix + '.', ''), getTaskAllow: !!entitlements['get-task-allow'], apsEnvironment: entitlements['aps-environment'] || '' });