altool cannot be found

Hi all,


I wanted to start building a notarization automation script.


However, when I try to use the 'xcrun altool' in Terminal, I get the following error:


xcrun: error: unable to find utility "altool", not a developer tool or in PATH


I'm on macOS 10.14.5, Xcode 10.2.1.


I then especially downloaded and installed Xcode Command Line Tools - still get same error.


Other tools like stapler do work.


I checked this dir and altool is not there: /Library/Developer/CommandLineTools/usr/bin


Any idea what's going on?


Thanks!

Replies

the solution was to reset the command line tools path with

xcode-select -r

I got the same issue on my new MacBook Pro. Thanks for the udpate.

I am on beta Catalina and have Xcode 11 Beta plus the beta developer tools installed. Xcode is running.


I already did


xcode-select -r


but still get


xcrun: error: unable to find utility "altool", not a developer tool or in PATH


Any help would be appreciated.

I have successfully resolved this error by updating my Xcode to latest available Xcode 11 Beta 4 version. Hope it will help you too.