Apple MacOS allow downloaded programs to run

In MacOS, when we try to run a standalone program or open an app downloaded from Internet, then MacOS's security will prevent us from running the program.

In order to execute the program or app, the following commands can be executed in Terminal to remove the quarantine attribute associated with the file.

Unblock a standalone program

sudo xattr -d com.apple.quarantine /path/to/your/program

Unblock an app

Recursively remove the attribute in the app bundle

sudo xattr -rd com.apple.quarantine /path/to/YourApp.app

Comments

Popular posts from this blog

Export/Backup Ollama Model

Download and run Hugging Face AI models in Ollama

Import self signed in Linux for Chrome / Chromium headless testing