Skip to content

Troubleshooting Mac OS

Patrick Trumpis edited this page Nov 11, 2023 · 4 revisions

Error: "Snap Camera" can't be opened

There is a common error under Mac OS with apps modified or downloaded from the web.

When trying to run such an app you will see an error popping up telling you something like:

The application "Snap Camera" can't be opened

The actual cause and solution to the problem can vary depending on your system version.

This guide will help you to fix the error.

So make sure to read everything carefully.

First

Try to open the Snap Camera as described in this article: Open a Mac app from an unidentified developer

  1. Open the Finder.
  2. Locate the app.
  3. Ctrl-Click or right-click on the app.
  4. Select "Open" from the resultant menu.

If Snap Camera doesn't open continue with the steps below.

Fixing the error

We will have to run a few commands on the Terminal application to fix the error.

You need to copy and execute the code highlighted at the end of each step.

1. Make the binary executable

First we have to make sure the binary file is executable.

This can be done with the chmod +x command.

The binary of Snap Camera is located at /Applications/Snap Camera.app/Contents/MacOS/Snap Camera.

Run the command:

chmod +x "/Applications/Snap Camera.app/Contents/MacOS/Snap Camera"

2. Remove the Mac OS code signing

Code signing is a Mac OS feature preventing apps from running if they have been modified.

Since the binary is modified after patching the original signature is no longer valid.

We are going to remove the signature of the app (and eventually re-sign it in the final step down below).

Run the command:

sudo codesign --remove-signature "/Applications/Snap Camera.app"

3. Remove extended file attributes

Since macOS 10.5, files originating from the web are marked with com.apple.quarantine via extended file attributes.

This can be another reason why the application won't open.

You can check if there are any extended attributes on the binary with the xattr command e.g.:

xattr "/Applications/Snap Camera.app/Contents/MacOS/Snap Camera"

We want to remove any extended file attributes of the entire app folder including all files recursively.

Run the command:

sudo xattr -cr "/Applications/Snap Camera.app"

4. Gatekeeper

Gatekeeper is a security technology in Mac OS that blocks all apps that are not downloaded from the App Store.

You can check if Gatekeeper is running with the command spctl --status.

If you want to know if Snap Camera is allowed to run, use the command:

spctl -a "/Applications/Snap Camera.app"

If Gatekeeper is enabled we need to create an exception for Snap Camera.

Run the command:

sudo spctl --add "/Applications/Snap Camera.app"

5. Security & Privacy settings

At this point you should check your security and privacy settings in Mac OS.

The appearance of your "Security & Privacy" settings can differ from the screenshot below.

gatekeeper2

Pay attention to any additional messages indicating that Snap Camera is blocked.

The option "Allow apps downloaded from Anywhere" is hidden and disabled by default.

If you want to enable the "Anywhere" option you can do so with one of the following Terminal commands.

Be aware that the "Anywhere" setting is global and not limited to Snap Camera.

Depending on your system version you will have to run command a or b (try both of them).

Run command a.)

sudo spctl --master-disable

Run command b.)

sudo spctl --global-disable

6. Re-Signing the application

If none of the above worked for you we can try one more thing.

Re-signing the application with the codesign command.

Run the command:

sudo codesign --force --deep --sign - "/Applications/Snap Camera.app"

This should create a valid application signature.

Now open Snap Camera

You should now be able to open Snap Camera without an error message poping up.

If the app still won't open then write some hate mails to Apple for their inconsistent operating system.

Additional resources:

If you are still having trouble or if you have any questions make sure to read these articles first.

Check out Community Help for further questions.