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

Using this library in local production

Open annie-elequin opened this issue 2 years ago • 2 comments

Hello, I was wondering how I might be able to access contacts when I'm running my codebase locally? (The auth status is always "Denied" when running locally, even though when I build it for production everything works as it should)

I imagine this has something to do with production vs development certificates, but I haven't found a very clear tutorial on how I should go about resolving that issue.

Let me know if there is any more information that will help.

annie-elequin avatar Oct 18 '22 16:10 annie-elequin

Bump on this! Did you find anything @annie-elequin?

sumersao avatar Dec 13 '23 18:12 sumersao

@sumersao a coworker of mine said that if he ran our project from Terminal, it seemed to just work - I think it used Terminal's entitlement perhaps? I have not tested this though so I don't have more details than that at this point

it does work if you build locally with electron-builder and just manually pass an entitlements file, instead of going through the whole production build process

annie-elequin avatar Dec 13 '23 21:12 annie-elequin