Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entitlement for Latest Mac OS #515

Open
sajjanbalar opened this issue Nov 5, 2019 · 4 comments
Open

Entitlement for Latest Mac OS #515

sajjanbalar opened this issue Nov 5, 2019 · 4 comments
Labels

Comments

@sajjanbalar
Copy link

Robot JS doesn't work with the lastest mac os.

Expected Behavior

It should send a keyword tap to the user

Current Behavior

It errors out saying "Permission Denied"

Possible Solution

I am guessing it is missing the entitlement required for apps to be notarized in the latest mac os.

Steps to Reproduce (for bugs)

  1. Update your MAC os to version 10.15 Catalina
  2. Write a simple electron app that sends a keyword tap
  3. Notarize your electron app. [https://medium.com/@TwitterArchiveEraser/notarize-electron-apps-7a5f988406db](Follow these instructions)
  4. Run the app.

Context

Our electron app stops sending key taps in the latest Mac OS.

Your Environment

  • RobotJS version: 0.5.1
  • Node.js version: 10.16.3
  • npm version:6.9.0
  • Operating System: Mac OS 10.15 Catalina
@oktapodia oktapodia added the bug label Nov 24, 2019
@Th3S4mur41
Copy link
Contributor

Not sure it's the same root cause yet, but we're seing similar issues with version 10.14 Mojave while 10.13 High Sierra is still working fine

@albemala
Copy link

albemala commented Jan 11, 2020

What worked for me was to add this entitlement:

<key>com.apple.security.cs.disable-library-validation</key>
<true/>

to the entitlements.mac.plist.

Source: electron-userland/electron-builder#3940

@oktapodia
Copy link
Collaborator

I think that it is related to the new privacy/authorization flow on OSX, authorizing the app in the Security & Privacy settings should work

@bbedevian
Copy link

Oktapodia's suggestion worked for me. Needed to authorize VS code to "control computer"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants