Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 763 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 763 Bytes

notarize-app

Linear notarize and staple for build tools.

  1. Run altool --notarize-app
  2. Run altool --notarization-info periodically and sleep until notarization is complete
  3. Run stapler staple

Usage

notarize-app <asc-provider> <username> <password> <primary-bundle-id> <file>

e.g.

notarize-app 'AB0CDEF2GF' '[email protected]' '@keychain:notarize-app' 'net.example.app' *.pkg

Xcode 13 and later

The newly introduced notarytool is suitable for automated build systems:

# Enter Apple ID
xcrun notarytool store-credentials 'notarize-app' --apple-id '[email protected]' --team-id 'AB0CDEF2GF'
# Notarize and Staple
xcrun notarytool submit --wait --keychain-profile 'notarize-app' *.pkg
xcrun stapler staple *.pkg