Skip to content

Commit 4886357

Browse files
might be useful to actually apply entitlements to app bundle
1 parent 1edee9a commit 4886357

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/xcode.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ async function signMacOSAppBundle(projectRef: XcodeProject): Promise<void> {
570570
'--options', 'runtime',
571571
'--keychain', projectRef.credential.keychainPath,
572572
'--sign', developerIdApplicationSigningIdentity,
573+
'--entitlements', projectRef.entitlementsPath,
573574
];
574575
if (core.isDebug()) {
575576
codesignArgs.unshift('--verbose');
@@ -622,6 +623,9 @@ async function signMacOSAppBundle(projectRef: XcodeProject): Promise<void> {
622623
if (projectRef.entitlementsPath) {
623624
const expectedEntitlementsContent = await fs.promises.readFile(projectRef.entitlementsPath, 'utf8');
624625
const expectedEntitlements = plist.parse(expectedEntitlementsContent);
626+
if (!entitlementsOutput.trim()) {
627+
throw new Error('Signed entitlements output is empty!');
628+
}
625629
const signedEntitlements = plist.parse(entitlementsOutput);
626630
if (!DeepEqual(expectedEntitlements, signedEntitlements)) {
627631
throw new Error('Signed entitlements do not match the expected entitlements!');

0 commit comments

Comments
 (0)