2021 Developer ToolsPrivacy & SecurityApp Store, Distribution & Marketing
WWDC21 · 6 min · Developer Tools / Privacy & Security / App Store, Distribution & Marketing
Faster and simpler notarization for Mac apps
Notarization works in tandem with macOS to help people safely download software for their Mac outside of the App Store. Discover how notarytool can help you quickly and easily notarize your Mac app for distribution. We’ll show you how you can now notarize your apps with just a single command, and how to bring notarization into your continuous integration workflows. To learn about the notarization workflow, watch the 2019 video "All About Notarization."
Watch at developer.apple.com ↗Code shown on screen · 2 snippets
altool example
// with altool
xcrun altool --notarize-app -f path/to/submission.zip
--primary-bundle-id "$BUNDLE_ID"
--apiKey "$KEY_ID" --apiIssuer "$ISSUER"
while true; do
INFO_OUT=$(2>&1 xcrun altool --notarization-info "$SUBMISSION_ID" -u "$USER"
--apiKey "$KEY_ID" --apiIssuer "$ISSUER")
STATUS=$(echo "$INFO_OUT" | grep "Status:" | sed -Ee "s|.*: (.*)$|\1|" )
if [[ "$STATUS" != "in progress" ]]; then
break
fi
sleep 30
done notarytool example
// with notarytool
notarytool submit path/to/submission.zip --wait
--key "$KEY_PATH" --key-id "$KEY_ID" --issuer "$ISSUER" Related sessions
-
9 min -
22 min -
34 min