【问题标题】:Error: "xcrun: error: unable to find utility "docsetutil", not a developer tool or in PATH" while creating documentation错误:“xcrun:错误:在创建文档时无法找到实用程序“docsetutil”,不是开发人员工具或 PATH”
【发布时间】:2018-12-07 03:14:47
【问题描述】:

我正在使用 appledoc 为我的框架生成 Apple 文档。

升级到 Xcode 9.3 后似乎停止工作,出现以下错误:

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

我查看了已知问题:https://github.com/tomaz/appledoc/issues/628

这表明 Xcode 不再有 docutils

我也尝试过使用 Xcode 9.4.1,但仍然无法正常工作。

有什么解决办法吗?

【问题讨论】:

    标签: ios compiler-errors xcode9.3 appledoc


    【解决方案1】:

    根据您的 GitHub 链接中@x43x61x69 的回答:

    似乎不仅删除了 docsetutil,还删除了 DADocSetAccess.framework。 用选项测试: --创建-html \ --no-create-docset \ --no-install-docset \ --no-publish-docset \ 它可以在 Xcode 9.3 GM 上创建没有错误的 html。

    至少对于生成 html 文档,它似乎在我的情况下工作。我已经在 XCode 9.4.1 上测试过

    【讨论】:

      【解决方案2】:

      你应该选择 Xcode 命令行工具 通过打开 Xcode 首选项-> 位置选项卡-> 从微调器中选择您当前的命令行工具 然后再试一次

      【讨论】:

      • 不知道为什么这被否决了。这对我有帮助。谢谢!
      猜你喜欢
      • 1970-01-01
      • 2020-08-13
      • 2014-04-18
      • 1970-01-01
      • 2017-04-06
      • 2020-06-07
      • 2019-04-11
      • 2017-08-21
      • 2019-05-09
      相关资源
      最近更新 更多