Linear notarize and staple for build tools.
- Run
altool --notarize-app
- Run
altool --notarization-info
periodically andsleep
until notarization is complete - Run
stapler staple
notarize-app <asc-provider> <username> <password> <primary-bundle-id> <file>
e.g.
notarize-app 'AB0CDEF2GF' '[email protected]' '@keychain:notarize-app' 'net.example.app' *.pkg
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