Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bulletinmybeard/f3c0bb73837d6d6ba7927d70ff1413b1 to your computer and use it in GitHub Desktop.
Save bulletinmybeard/f3c0bb73837d6d6ba7927d70ff1413b1 to your computer and use it in GitHub Desktop.
Patching macOS apps with working and valid app signature

If you can't open apps and get a message like “Sample.app” is damaged and can’t be opened. You should move it to the Bin., do the following:

xattr -p com.apple.rootless "/Applications/Safari.app" > quarantine.attr
xattr -w com.apple.quarantine "`cat quarantine.attr`" "/Applications/Sample.app"

Does not seem to work anymore from macOS Ventura.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment