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

我只是一个虾纸丫 提交于 2021-02-10 13:22:46

问题


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.


回答1:


It's aGvtool and not aVgtool.

Try to run xcrun agvtool, it should be better




回答2:


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

sudo xcode-select -s /Applications/Xcode.app



回答3:


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



来源:https://stackoverflow.com/questions/56499208/xcrun-avgtool-xcrun-error-unable-to-find-utility-avgtool-not-a-developer-to

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!