DEV Community

Carlos Saltos
Carlos Saltos

Posted on

1 2

Skip macOS Catalina security check

What ?

Do you want to run your own custom applications on mac ? ... or did you ask yourself the question of How to force to run this program on my mac ? ... then this is a possible anwser with a simple trick to run any program on Catalina.

Why ?

Because Apple decided to increase more and more the security restrictions on mac that makes development a little bit difficult.

How ?

  • The simple version is to run this command:
sudo xattr -w com.apple.quarantine "0062;5e9dca67;Safari;2D1ADCF0-049C-4251-9EE5-5FCD16E74B6B" FILENAME
Enter fullscreen mode Exit fullscreen mode

NOTE: Instead of FILENAME just use the name of the program file to run.

  • But sometimes the programs have several files and running manually takes too long, so instead you can do this:

Save the above command as a script in a file called untap.sh with this content:

!/bin/bash

sudo xattr -w com.apple.quarantine "0062;5e9dca67;Safari;2D1ADCF0-049C-4251-9EE5-5FCD16E74B6B" "$*"
Enter fullscreen mode Exit fullscreen mode

Give it permissions with chmod and then run it with the find command with something like:

find /Application/MacPass.app -type f -exec ./untap.sh {} ';'

NOTE: obviously replace /Application/MacPass.app with the installation folder of the program you want to run

And that's it !!

Where ?

These commands and scripts are tested on macOS Catalina 10.15.7 with programs like GraalVM, MacPass, Tunnelblick, and even Docker Desktop on its earlier versions.

IMPORTANT: Please do not run any program, Apple added these security rules for a reason, use this at your own risk, and please always always double check the source using at least HTTPS correctly and also GPG or another kind of secure signatures if possible, to run only trusted files.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay