Skip to content

signing and notarizing CLI binaries on MacOS

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"

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.me, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Try iOS App