signing and notarizing CLI binaries on MacOS
Prerequisites
- Apple Developer account (
https://developer.apple.com
) - Xcode installed
- Developer Team ID
zip
binary file (ordmg
/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
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here