Skip to content

Commit 9b3c829

Browse files
committed
fix: supports now also MacCatalyst .provisioningprofile and iOS .mobileprovision
Profiles are now found, also in combination with VSCode-Extension PR tidev/vscode-titanium#1173
1 parent c9d27b6 commit 9b3c829

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/provisioning.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ function detect(options, callback) {
8080
enterprise: 0,
8181
distribution: 0
8282
},
83-
ppRegExp = /.+\.mobileprovision$/;
83+
84+
ppRegExp = /.*\.(mobileprovision|provisionprofile)$/;
85+
8486

8587
if (options.watch) {
8688
var throttleTimer = null;
@@ -236,7 +238,7 @@ function detect(options, callback) {
236238
team: plist.TeamIdentifier || null,
237239
entitlements: entitlements,
238240
// TODO: remove all of the entitlements below and just use the `entitlements` property
239-
appId: (entitlements['application-identifier'] || '').replace(appPrefix + '.', ''),
241+
appId: (entitlements['application-identifier'] || entitlements['com.apple.application-identifier'] || '').replace(appPrefix + '.', ''),
240242
getTaskAllow: !!entitlements['get-task-allow'],
241243
apsEnvironment: entitlements['aps-environment'] || ''
242244
});

0 commit comments

Comments
 (0)