Dunfey · Hotel WWDC as data, est. 1983
Front desk everything
Years
Topics

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 ↗

Transcript all transcripts

Code shown on screen · 2 snippets

altool example bash · at 4:10 ↗
// 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 bash · at 4:19 ↗
// with notarytool
notarytool submit path/to/submission.zip --wait
    --key "$KEY_PATH" --key-id "$KEY_ID" --issuer "$ISSUER"