无法通过我的 xcode 运行 doxygen 脚本?
我已经安装了 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能意味着 Xcode 的工作目录不是您的源代码树目录。
在脚本中使用
pwd
跟踪工作目录以证明这一点。使用
pushd \foo\bar\myproject\
和popd
将您的 doxygen 调用括起来。正如您甚至可能在开始时使用简单的
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\
andpopd
to bracket your call to doxygen. As inYou 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