4

无法使用以下命令自动更新 Xcode 中的版本号

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

尝试以下选项

  1. 在 .bash_profile 中添加 Developer_DIR PATH 并附加到如下路径

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

  1. 还通过导航到 Xcode ->
    Preferences -> Locations -> Command Line Tools 更新了命令行工具:从下拉列表中选择了 Xcode 10.1。

任何帮助将不胜感激。

4

3 回答 3

7

它是aGvtool而不是aVgtool

试试跑吧xcrun agvtool,应该会更好

于 2019-12-31T10:47:29.877 回答
4

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

sudo xcode-select -s /Applications/Xcode.app
于 2020-02-25T08:01:13.570 回答
1

我通过导航到 Xcode -> 首选项 -> 位置 -> 命令行工具来更新命令行工具,以解决上述无法找到 agvtool 的问题。

于 2020-09-18T05:01:24.337 回答