6

I have a binary from work that I'm trying to run. I keep getting an error that

“my-binary-amd64” cannot be opened because the developer cannot be verified.

I've looked up solutions online and so far I'm encountering problems. This article for example suggests navigating to your Security & Privacy settings and unlocking the ability to allow changes. I see the prompt for `"my-binary-amd4" was blocked from use because it is not from an identified developer' and then there is an Allow Anyway button but that doesn't do anything. (see image below)

Security & Privacy

The second suggestion is to find the app on finder and click through some settings. But this is simply a binary, so it doesn't show up in the finder so I can' figure this one out.

2 Answers 2

14

The file my-binary-amd64 has a com.apple.quarantine extended attribute. Open a Terminal application window and enter the following command. You need to replace <path to file> with the path to the my-binary-amd64 file.

xattr -dr com.apple.quarantine <path to file>/my-binary-amd64

This should remove the com.apple.quarantine extended attribute. If you do not have ownership of the my-binary-amd64 file, then you will need to precede the above command with a sudo, as shown below.

sudo xattr -dr com.apple.quarantine <path to file>/my-binary-amd64

Using sudo will require a administrator password.

2
  • I ran into a similar error with VSCodium. I tried xattr -dr com.apple.quarantine /Applications/VSCodium.app/Contents/Resources/app/bin/codium But that didn't release it like it did with the binary. Is there a similar command I could use?
    – Hofbr
    Feb 18, 2022 at 23:05
  • 1
    The solution to the above by the way was xattr -dr com.apple.quarantine /Applications/VSCodium.app
    – Hofbr
    May 10, 2023 at 21:15
-1

For VSCodium, open a terminal and run:

$ /Applications/VSCodium.app/Contents/MacOS/Electron

Or execute:

$ codesign --sign - --force --deep /Applications/VSCodium.app
$ xattr -d com.apple.quarantine /Applications/VSCodium.app

After this, VSCodium can run up via Spotlight.

1
  • What does this do exactly? How does it answer the question? Could you please add some more detail?
    – Thinkr
    Sep 15, 2023 at 19:40

You must log in to answer this question.

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