Where to find notarytool?

1.7k views Asked by At

I'm trying to sign and notarize my macOS application. The Apple developer documentation says to do xcrun notarytool ... per Customizing the notarization workflow.

But when I try this, I get an error xcrun:

error: unable to find utility "notarytool", not a developer tool or in PATH.

The apple documentation simply says 'install Xcode 13 beta' and you'll have it. Well, I have Xcode 13 installed on macOS 11.6, do I have to downgrade to the beta? Reinstall? Look for it somewhere? Inside Xcode.app?

2

There are 2 answers

0
Montmorency On

You need to use xcrun:

xcrun notarytool ...

[The Apple documentation was also updated to fix this at some point, but the developer video was not.]

1
gonatf On

Use the following to reset the tools path:

sudo xcode-select -r