Grahame Grieve
Grahame Grieve

Reputation: 3586

Where to find notarytool?

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?

Upvotes: 3

Views: 2553

Answers (3)

mhapps
mhapps

Reputation: 1133

For the benefit of anyone finding this via Google who wants to know the location of notarytool (in my case for copying to a previous MacOS, which is allowed), it is in:

/Applications/Xcode.app/Contents/Developer/usr/bin

(True as @ Xcode 15.3, Sonoma 14.1.2) (Shift + Command + . shows the hidden folders in Finder)

Upvotes: 1

Montmorency
Montmorency

Reputation: 53

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.]

Upvotes: 1

gonatf
gonatf

Reputation: 29

Use the following to reset the tools path:

sudo xcode-select -r

Upvotes: 2

Related Questions