node-mac-permissions icon indicating copy to clipboard operation
node-mac-permissions copied to clipboard

Folder access automatically denied on signed app

Open zinne opened this issue 1 year ago • 6 comments

Everything works fine. The permission popup appears in my dev env. But when I build the app with electron-packager and sign my app the permission popup does not appear. The log just returns a denied status. (entitlements are setup correctly) Can someone confirm that it works on the latest MacOS with a real signed app?

MacOS Sonoma 14.1 electron 26.4.2

zinne avatar Nov 13 '23 13:11 zinne

having this issue as well!

benrapport avatar Nov 25 '23 07:11 benrapport

hey @zinne I can confirm (for anything working in dev it works in production as well w/ a signed app). I was having this issue at first, but entitlements were my issue. Did you figure it out?

sumersao avatar Dec 13 '23 18:12 sumersao

@sumersao no, didn‘t made it. Solved my situation just by using a save dialog.

zinne avatar Dec 13 '23 18:12 zinne

@zinne interesting. What permissions were you trying to use explicitly? fwiw the askForContactsAccess() didn't work for me in dev or prod, so I did a workaround by reading the resource directly and checking permissions that way. But other things worked

sumersao avatar Dec 13 '23 18:12 sumersao

@sumersao I was trying to save a file to the Desktop.

zinne avatar Dec 13 '23 19:12 zinne

Have you defined the NSDesktopFolderUsageDescription property in the info.plist?

theDevelopper avatar Mar 04 '24 14:03 theDevelopper