Sunday, 10 July 2016

The application is damaged and can't be opened

I downloaded a new version of eclipseArduino (Arduino development within Eclipse). After unpacking and moving to /Applications, I get the message

"eclipseArduino" is damaged and can't be opened. You should move it to the Trash.


After a lot of poking around, I found this:

  1. Open Gatekeeper settings located in System Preferences > Security & Privacy.
  2. Set Allow applications downloaded from: to Anywhere and confirm by pressing Allow From Anywhere.
  3. Run the application.
  4. Once the application has been successfully launched, it no longer goes through Gatekeeper; so, restore Gatekeeper settings to the default option Mac App Store and identified developers after successfully launching the application.


  1. Now that macOS Sierra no longer offers a setting Anywhere in System Preferences, the command spctl does, in its way. Replacing, respectively, steps 2 and 4, these can be entered on the command line:

    $ sudo spctl --master-disable
    $ sudo spctl --master-enable

  2. Thanks for that, Georg!

    I wonder whether I could just have said

    $ sudo spctl --add /Applications/

    (is a --label necessary?)