octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.37k stars 961 forks source link

Not working in mac #605

Open ktjd123 opened 4 years ago

ktjd123 commented 4 years ago

Expected Behavior

keyboard input

Current Behavior

not working at all with keyboard. giving SIGSEGV

Possible Solution

robotjs worked previously but it started not to work. I think this is related about macos version

Steps to Reproduce (for bugs)

  1. try to run in this version

Context

Your Environment

Thank you.

deepziem commented 4 years ago

security and privacy, preferences --> privacy --> developer tools settings. enable terminal and any ide from which this is invoked the appropriate permissions. Say bash/terminal/jetbrains/atom/vs code etc

talmobi commented 4 years ago

@deepziem what if there are no Developer Listed in the privacy tab? (even though developer mode is enabled)

talmobi commented 4 years ago

I got the Developer Tools showing in the pref pane by xcode through the App Store. Remember to also OPEN the xcode application from the App Store because this will trigger another update.

Updating from the command line did not work.

However, still can't get robotjs to work in catalina. Sigh, should have not updated the OS. Thought I waited long enough but apparently not.

talmobi commented 4 years ago

Great success! Got robotjs working by simply adding iterm to both the Accessability section and Developer Tools section!

ref: https://github.com/octalmage/robotjs/issues/548