Skip to content

signing and notarizing CLI binaries on MacOS

homepage-banner

Prerequisites

  • Apple Developer account (https://developer.apple.com)
  • Xcode installed
  • Developer Team ID
  • zip binary file (or dmg/app format)

Prepare

login Apple Account in Xcode

security find-identity -v

xcrun notarytool store-credentials

Sign and submit your binary

codesign -s XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -o runtime -v YOUR_BIN.zip

xcrun notarytool submit --keychain-profile "myTool" YOUR_BIN.zip

Verify

xcrun notarytool history --keychain-profile "myTool"
Leave a message