24

I've got my Security preferences set to allow apps downloaded from "Mac App Store and identified developers." When I try to open an unsigned app:

open xyz.app

I see the following:

App can't be opened

Usually, I right-click on the app and click "Open". This brings up a similar dialogue, but this one includes an "open anyway"-type button:

App can't be opened, with open button

Is there a way to do this only using the open command -- something like:

open --even-if-unsigned xyz.app
0

3 Answers 3

38

The solution presented here is no longer supported as of macOS 15+

  1. Create and add a Gatekeeper label to the app. (‘Approved’ is an arbitrary string.)

     spctl --add --label "Approved" /path/to/xyz.app
    
  2. Approve all apps with the label.

     spctl --enable --label "Approved"
    

    This only needs to be done once and adding the same named label to apps in the future automatically enables their access.

  3. Open the app as usual.

     open xyz.app
    

For more information about spctl (SecAssessment system policy security), see the man page.

1
  • I came to say that while you are correct in the sense that it is no longer supported on macOS 15+. And, to be honest, I am surprised it took this long for them to remove it. A label could be added to a file without sudo prompt. There is, however, --global-disable for the brave.
    – ChrisKader
    Commented Nov 22 at 8:58
37

You could strip the quarantine from the app:

xattr -r -d com.apple.quarantine /path/to/xyz.app

You may want/need to use sudo for that command, depending on permissions.

Then Gatekeeper isn't involved, at all. Of course, that also means that the signature isn't verified, which removes an important safety feature.

0
0

Neither of the above solutions worked for me. But I found another one involving System Preferences.

  1. Right click on App and select Open
  2. Click Done
  3. Open System Settings -> Privacy & Security
  4. Scroll down all the way
  5. Click Open Anyway

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .