{"id":3274,"date":"2026-12-02T19:40:40","date_gmt":"2026-12-02T19:40:40","guid":{"rendered":"https:\/\/blog.designed79.co.uk\/?p=3274"},"modified":"2026-12-02T19:41:45","modified_gmt":"2026-12-02T19:41:45","slug":"set-up-notarytool-for-macos-app-distribution","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=3274","title":{"rendered":"Set up notarytool for macOS app distribution"},"content":{"rendered":"<p>Apple\u2019s<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">notarytool<\/div><\/div>\n<p>submits signed macOS apps and installer packages for notarization. Set up a Keychain profile once and reuse it for releases across your Apple Developer team.<\/p>\n<p>This guide uses<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">FA.pkg<\/div><\/div>\n<p>as an example. To use it with another app, replace<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">build\/FA.pkg<\/div><\/div>\n<p>with the path to your signed installer.<\/p>\n<h2>1. Check that<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">notarytool<\/div><\/div>\n<p>is available<\/h2>\n<p>Open Terminal and run:<\/p>\n<pre dir=\"ltr\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">xcrun notarytool --version<\/div><\/div>\n\n<\/pre>\n<p>If<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">xcrun<\/div><\/div>\n<p>can\u2019t find<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">notarytool<\/div><\/div>\n<p>, install or select a current Xcode toolchain and try again. <a href=\"https:\/\/developer.apple.com\/documentation\/security\/customizing-the-notarization-workflow\">Apple\u2019s notarization guide<\/a><\/p>\n<h2>2. Create an app-specific password<\/h2>\n<p>Sign in to your Apple Account, open <strong>Sign-In and Security \u2192 App-Specific Passwords<\/strong>, and generate a password named<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">notarytool<\/div><\/div>\n<p>. Your Apple Account must have two-factor authentication enabled. <a href=\"https:\/\/support.apple.com\/en-us\/102654\">Apple\u2019s app-specific password instructions<\/a><\/p>\n<h2>3. Save your credentials in Keychain<\/h2>\n<p>Find your <strong>Team ID<\/strong> under <strong>Membership details<\/strong> in your Apple Developer account. Replace the example email and Team ID below, then run the command. Paste the app-specific password when prompted so it stays out of your shell history. <a href=\"https:\/\/developer.apple.com\/account\/\">Apple Developer account<\/a><\/p>\n<pre dir=\"ltr\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">xcrun notarytool store-credentials &quot;developer-notary&quot; \\<br \/>\n&nbsp; --apple-id &quot;you@example.com&quot; \\<br \/>\n&nbsp; --team-id &quot;YOUR_TEAM_ID&quot;<\/div><\/div>\n\n<\/pre>\n<p>Check that the profile can connect to Apple\u2019s notarization service:<\/p>\n<pre dir=\"ltr\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">xcrun notarytool history --keychain-profile &quot;developer-notary&quot;<\/div><\/div>\n\n<\/pre>\n<h2>4. Submit the signed installer<\/h2>\n<p>Sign the<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">.app<\/div><\/div>\n<p>with <strong>Developer ID Application<\/strong> before packaging it. Then sign the<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">.pkg<\/div><\/div>\n<p>with <strong>Developer ID Installer<\/strong>. Submit that finished package to Apple. <a href=\"https:\/\/developer.apple.com\/documentation\/xcode\/packaging-mac-software-for-distribution\">Apple\u2019s packaging guide<\/a><\/p>\n<pre dir=\"ltr\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">xcrun notarytool submit &quot;\/path\/to\/installer.pkg&quot; \\<br \/>\n&nbsp; --keychain-profile &quot;developer-notary&quot; \\<br \/>\n&nbsp; --wait<\/div><\/div>\n\n<\/pre>\n<p>If the result is <strong>Invalid<\/strong>, use the submission ID printed by<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">notarytool<\/div><\/div>\n<p>to see which checks failed:<\/p>\n<pre dir=\"ltr\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">xcrun notarytool log &quot;SUBMISSION_ID&quot; \\<br \/>\n&nbsp; --keychain-profile &quot;developer-notary&quot;<\/div><\/div>\n\n<\/pre>\n<h2>5. Staple and verify the ticket<\/h2>\n<p>Once the submission status is <strong>Accepted<\/strong>, attach Apple\u2019s notarization ticket to the package and verify it:<\/p>\n<pre dir=\"ltr\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">xcrun stapler staple &quot;\/path\/to\/installer.pkg&quot;<br \/>\nxcrun stapler validate &quot;\/path\/to\/installer.pkg&quot;<\/div><\/div>\n\n<\/pre>\n<p>Distribute the stapled<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">.pkg<\/div><\/div>\n<p>. For future releases, reuse the same<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">developer-notary<\/div><\/div>\n<p>profile and repeat the submission and stapling steps for each new package. <a href=\"https:\/\/developer.apple.com\/documentation\/security\/customizing-the-notarization-workflow\">Apple\u2019s notarization workflow<\/a><\/p>\n<h3>What to sign and what to notarize<\/h3>\n<p>For a <strong><\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">.pkg<\/div><\/div>\n<p>release<\/strong>, sign the app with <strong>Developer ID Application<\/strong> and sign the installer with <strong>Developer ID Installer<\/strong>. Submit only the finished<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">.pkg<\/div><\/div>\n<p>for notarization. Apple checks the app inside it, so a separate notarization submission for the app is unnecessary.<\/p>\n<p>For a <strong><\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">.zip<\/div><\/div>\n<p>release<\/strong>, sign the app with <strong>Developer ID Application<\/strong>, put it in a ZIP, and submit the ZIP for notarization. After Apple accepts it, staple the ticket to the app and create a fresh ZIP containing the stapled app. Distribute that ZIP. <a href=\"https:\/\/developer.apple.com\/documentation\/xcode\/packaging-mac-software-for-distribution\">Apple\u2019s packaging guide<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apple\u2019s notarytool submits signed macOS apps and installer packages for notarization. Set up a Keychain profile once and reuse it for releases [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3274","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3274"}],"version-history":[{"count":2,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3274\/revisions"}],"predecessor-version":[{"id":3276,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3274\/revisions\/3276"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}