Code-signing macOS binary

Published on
1 mins read

Recently, I created a Rust project and publish binary via GitHub Releases. But when try to execute those binary, it always got blocked by com.apple.quarantine

There’s a quick fix to self-sign binary allowing to passing quarantine right away.

xattr -cr <path to binary>
codesign -s - <path to binary>