xcrun avgtool xcrun: error: unable to find utility "avgtool", not a developer tool or in PATH
Asked Answered
S

3

7

Unable to automatically update the version number in Xcode using below command

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

Tried below options

  1. Added Developer_DIR PATH in .bash_profile and appended to path like below

export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer" export PATH="/usr/local/bin:$DEVELOPER_DIR:$PATH"

  1. Also updated the command Line tools by navigating to Xcode ->
    Preferences -> Locations -> Command Line Tools: selected Xcode 10.1 from drop down.

Any help will be really appreciated.

Smoulder answered 7/6, 2019 at 17:58 Comment(0)
T
11

It's aGvtool and not aVgtool.

Try to run xcrun agvtool, it should be better

Thermochemistry answered 31/12, 2019 at 10:47 Comment(1)
I can't believe I made this mistakNether
N
6

Maybe you have many versions of Xcode or the xcode-select cannot relation with Xcode. try:

sudo xcode-select -s /Applications/Xcode.app
Nostradamus answered 25/2, 2020 at 8:1 Comment(2)
This fixed the issue on macOS Catalina, even though I didn't have multiple versions of Xcode. Thanks!Brimmer
Thanks! This fixed mine as well on macOS Big Sur, although I only have one Xcode of version 13.1Startle
W
2

I updated the command Line tools by navigating to Xcode -> Preferences -> Locations -> Command Line Tools to resolve above unable to find agvtool.

Welty answered 18/9, 2020 at 5:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.