我正在添加appledoc,但出现错误:

line 3: /usr/local/bin/appledoc: No such file or directory

这行是--project-company“DEIMOS SPACE” \我更改了公司的名称,但是我不确定这是否正确,何时可以看到此名称?

我添加了脚本,然后看到了一些教程,例如:http://tutoriales-asg.blogspot.com.es/2014/02/configurar-appledoc-en-xcode.htmlhttp://www.simplicate.info/2013/07/25/using-appledoc-to-generate-xcode-help-part-1/
但这会出错。如何正确执行此操作?什么不好

谢谢!

编辑脚本为:
 /usr/local/bin/appledoc \
--project-name "${PROJECT_NAME}" \
--project-company "$YOUR_COMPANY" \  //Get /usr/local/bin/appledoc: No such file or directory HERE

--company-id "ExampleProject" \
--output "${PROJECT_DIR}/Help/${PROJECT_NAME}" \
--install-docset \
--logformat xcode \
-keep-undocumented-objects \
--keep-undocumented-members \
--keep-intermediate-files \
--no-repeat-first-par \
--no-warn-invalid-crossref \
--merge-categories \
--exit-threshold 2 \
--docset-platform-family iphoneos \
--ignore "*.m" \
--include "${PROJECT_DIR}/${PROJECT_NAME}/Documentation/Images" \
--ignore "LoadableCategory.h" \
--index-desc "${PROJECT_DIR}/readme.markdown" \
"${PROJECT_DIR}/${PROJECT_NAME}"

最佳答案

我解决了错误。键入下面的2个命令。

$ brew install appledoc
Updating Homebrew...
$ ^C==> Downloading https://homebrew.bintray.com/bottles/appledoc-2.2.1.sierra.bottl
######################################################################## 100.0%
==> Pouring appledoc-2.2.1.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/appledoc/2.2.1: 26 files, 1.2M

关于ios - 添加appledoc时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26705886/

10-10 08:20