XCode 插件使用

已使用插件

包管理插件: Alactraz

安装地址: ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins

文档注释: VVDocumenter

使用Alactraz包管理插件安装

其他插件参考

文档注释: github优秀开源项目大全-iOS

"github优秀开源项目大全-iOS"

文档生成

使用appledoc生成文档。

  1. appledoc安装:appledoc
  1. Xcode和appledoc 集成:

https://github.com/tomaz/appledoc/blob/master/XcodeIntegrationScript.markdown

  1. 利用xcode自动生成项目文档: 跳转地址
  1. 可执行Run script 代码块

# shell script goes here

#appledoc Xcode script

# Start constants

company="9tong";

productName="人脉通";

companyID="com.9tong";

#outputPath="~/help";

outputPath="./doc";

inputPath="./tranb/class/ViewController/Home/Tranb/TimeLine";

# End constants

/usr/local/bin/appledoc \

-p "${productName}" \

-c "${company}" \

--company-id "${companyID}" \

--no-create-docset \

-o "${outputPath}"  \

"${inputPath}"

exit 0

使用HeaderDoc生成文档。

  1. 利用xcode自动生成项目文档: 跳转地址

2.可执行Run script 代码块


# shell script goes here

mkdir -p headerDoc

find ./tranb/class/ViewController/Home/Tranb/TimeLine -name \*.h -print | xargs headerdoc2html -o headerDoc

gatherheaderdoc headerDoc

exit 0

3.headerDoc文档注释规范链接地址

你可能感兴趣的:(XCode 插件使用)