#TIL 11 - Mac OSX - Open file from anywhere | ProductsWay

#TIL 11 - Mac OSX - Open file from anywhere

Apr 29, 2021 · Dung Huynh

What

Remove the quarantine attribute from one trusted unsigned app so macOS can open it.

Why

Gatekeeper checks app signatures before launch and blocks software Apple has not notarized. After you verify the app and its source, remove only that app's com.apple.quarantine attribute. This change is not automatically reversible, so avoid disabling Gatekeeper globally or recursively deleting every extended attribute.

How

# Inspect the app's extended attributes first
xattr /Applications/YourApp.app

# Remove only the quarantine attribute from this trusted app
xattr -dr com.apple.quarantine /Applications/YourApp.app