codebytere / node-mac-permissions

A native node module to manage system permissions on macOS.
MIT License
174 stars 40 forks source link

Folder access automatically denied on signed app #69

Open zinne opened 7 months ago

zinne commented 7 months ago

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

benrapport commented 7 months ago

having this issue as well!

sumersao commented 6 months ago

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?

zinne commented 6 months ago

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

sumersao commented 6 months ago

@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

zinne commented 6 months ago

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

theDevelopper commented 4 months ago

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