码迷,mamicode.com
首页 > 移动开发 > 详细

Xcode注释转文档appledoc使用

时间:2018-12-07 21:11:06      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:assertion   git   data   parameter   大神   apple   tput   遇到的问题   image   

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

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

然后重新编译

Xcode注释转文档appledoc使用

标签:assertion   git   data   parameter   大神   apple   tput   遇到的问题   image   

原文地址:https://www.cnblogs.com/xiu1004/p/10084367.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!