首页 > 解决方案 > Swift:Swift doc github 文档工具 - 无法找到正确的路径

问题描述

我正在尝试为我的 Swift 项目安装和使用以下自动生成文档工具:

https://github.com/SwiftDocOrg/swift-doc

它安装正确,但是当我尝试生成时,我收到以下消息:

No public API symbols were found at the specified path. No output was written.

我的项目路径如下:

Desktop/Development/GitClones/MyProjectFolder/

所以我试过这个:

swift doc generate /Desktop/Development/GitClones/MyProjectFolder --module-name MyProject

我从构建设置中获得的模块名称。

不完全确定这是正确的论坛,但我没有得到开发人员的任何回复,我想知道这里是否有人尝试过使用这个工具。

标签: swiftdocumentationdocumentation-generation

解决方案


我关键决定了这个案子:

--minimum-access-level 应包含的符号的最低访问级别。(默认:公开)


推荐阅读