安装方法(一):终端输入命令git
1. git clone git://github.com/tomaz/appledoc.git 2.cd ./appledoc 3.sudo sh install-appledoc.sh
安装方法(二): 终端输入命令 (条件:已安装过Homebrew)github
brew install appledoc
终端 cd 到xcode所在的目录 输入命令:(YYY为想要生成文档的项目名)xcode
appledoc --project-name YYY --project-company General .
确认注释添加完后前往~/Library/Developer/Shared/Documentation/DocSets/ 目录将已生成好的 General.YYY.docset 上传到appleDoc模块根目录下app
查看方法(一):打开finder 点击前往文件夹,输入:~/Library/Developer/Shared/Documentation/DocSets/ 点击其中一个文件显示包文件 最后的Html 文件 能够打开在网页上浏览。工具
查看方法(二):或者用Dash 工具阅读也是很方便的。spa
查看方法(三):借助xcode的帮助文档查看。3d