File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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!' ) ;
You can’t perform that action at this time.
0 commit comments