无法通过我的 xcode 运行 doxygen 脚本?

发布于 2024-12-07 12:00:38 字数 459 浏览 6 评论 0原文

我已经安装了 doxygen.dmg。我使用此链接作为参考: duckrowing

我已经遵循了其中的每一步。现在我可以使用 doxygen 工具创建 html 文档集。但对于接下来的步骤,同时使用 XCode 本身使用一些脚本阶段生成文档。我也尝试过,但在构建该应用程序时它给了我错误。这是错误:

.build/Debug-iphonesimulator/.build/loadDocSet.scpt:23:157:执行错误:Xcode 出现错误:指定路径中没有文档集。 (6)

请帮助我。我只想在构建阶段生成文档。

这样,如果我更改代码,它可以自动更改。

提前致谢。

姆鲁纳尔

I have installed doxygen.dmg. I have used this link for reference: duckrowing

I have followed each and every step from that. Now I am able to create html docset using that doxygen tool. But for the next steps, while generating a documentation using XCode itself using some script phase. I have tried that also but it throws me error while building that application. Here is the error:

.build/Debug-iphonesimulator/.build/loadDocSet.scpt:23:157: execution error: Xcode got an error: No documentation set present at specified path. (6)

Please help me for that. I want to generate my documentation on build phase only.

So that it can be automatically changed if i change my code.

Thanks in advance.

Mrunal

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对你而言 2024-12-14 12:00:38

这可能意味着 Xcode 的工作目录不是您的源代码树目录。

在脚本中使用 pwd 跟踪工作目录以证明这一点。

使用 pushd \foo\bar\myproject\popd 将您的 doxygen 调用括起来。正如

pushd \Users\mrunal\projects\fooproject\
doxygen -switch -blah 
popd

您甚至可能在开始时使用简单的 cd \foo\bar\myproject\ 一样,但如果这会破坏构建的其余部分,请不要感到惊讶。

或使用 doxygen 命令开关之一显式定义工作目录。我目前没有安装它,但很可能是 -d-w

还有一个环境变量可以动态定义源目录。所以你可以做 cd $PROJECT_DIR

请参阅 Xcode 变量 了解更多环境变量

It probably means that Xcode's working directory isn't your source trees directory.

Trace the working directory with a pwd in the script to prove this.

Use pushd \foo\bar\myproject\ and popd to bracket your call to doxygen. As in

pushd \Users\mrunal\projects\fooproject\
doxygen -switch -blah 
popd

You might even get away with a simple cd \foo\bar\myproject\ at the start but don't be surprised if this borks the rest of the build.

or use one of the doxygen command switches to explicitly define the working directory. I don't have it installed at the moment but most likely -d or -w

There is also an environment variable to dynamically define the source directory. so you could do cd $PROJECT_DIR

See Xcode variables for lots more environ vars

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文