XCode 插件使用

已使用插件

包管理插件: Alactraz

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

文檔注釋: VVDocumenter

使用Alactraz包管理插件安裝

其他插件參考

文檔注釋: github優(yōu)秀開源項目大全-iOS

"github優(yōu)秀開源項目大全-iOS"

文檔生成

使用appledoc生成文檔。

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

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

  1. 利用xcode自動生成項目文檔: 跳轉(zhuǎn)地址
  1. 可執(zhí)行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自動生成項目文檔: 跳轉(zhuǎn)地址

2.可執(zhí)行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文檔注釋規(guī)范鏈接地址

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容