参考了一些大神的方法总算成功了记录一下少走弯路

1:安装appledoc

使用终端下载:

命令行:

git clone git://github.com/tomaz/appledoc.git

cd ./appledoc

sudo sh install-appledoc.sh

查看是否安装成功:

命令行:

appledoc --version

appledoc version: 2.2.1 (build 1334)

 

 2   cd 进入工程目录 (目录下的所有文件都会被使用)

 

appledoc --no-create-docset --output ./doc --project-name 工程名 --project-company "公司名" --company-id "公司id" . //注意空格后加.

 

遇到的问题** Assertion failure in +[GBMethodData methodDataWithType:result:arguments:], /Users/../Desktop/911doc/appledoc/Model/GBMethodData.m:44

解决方法

打开appledoc工程GBMethodData.m
此处代码以及解决方法:

+ (id)methodDataWithType:(GBMethodType)type result:(NSArray *)result arguments:(NSArray *)arguments {
//NSParameterAssert([arguments count] >= 1); //注释掉断言
return [[self alloc] initWithType:type attributes:[NSArray array] result:result arguments:arguments];
}

//重新执行安装脚本,强行走下去

cd ./appledoc

sudo sh install-appledoc.sh

然后重新编译

posted on 2018-12-07 18:13  yuyuyu___666  阅读(324)  评论(0编辑  收藏  举报