解决appledoc:method type doesn't match!问题

users:目录名称 users$ appledoc --no-create-docset --output ./doc --project-name "项目名" --project-company "公司名" --company-id "公司ID" .
appledoc version: 2.2.1 (build 1334)

Oops, something went wrong...
AppledocException: Failed merging @propertyNSCharacterSet(UFPUI).ufpui_URLUserInputQueryAllowedCharacterSet to +[NSCharacterSet(UFPUI) ufpui_URLUserInputQueryAllowedCharacterSet]; method type doesn't match!
  @ 0   CoreFoundation                      0x00007fff34fc7e65 __exceptionPreprocess + 256
  @ 1   libobjc.A.dylib                     0x00007fff61023720 objc_exception_throw + 48
  @ 2   CoreFoundation                      0x00007fff34fe2ab2 +[NSException raise:format:arguments:] + 98
  @ 3   appledoc                            0x000000010230a433 appledoc + 58419
  @ 4   appledoc                            0x0000000102321880 appledoc + 153728
  @ 5   appledoc                            0x0000000102321ae8 appledoc + 154344
  @ 6   appledoc                            0x000000010231e615 appledoc + 140821
  @ 7   CoreFoundation                      0x00007fff34f5f734 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 219
  @ 8   appledoc                            0x000000010231e3f1 appledoc + 140273
  @ 9   appledoc                            0x00000001023234cf appledoc + 160975
  @ 10  appledoc                            0x0000000102315b11 appledoc + 105233
  @ 11  appledoc                            0x000000010230e0a0 appledoc + 73888
  @ 12  appledoc                            0x0000000102312a83 appledoc + 92803
  @ 13  appledoc                            0x000000010231032e appledoc + 82734
  @ 14  appledoc                            0x000000010230d44e appledoc + 70734
  @ 15  appledoc                            0x000000010230b288 appledoc + 62088
  @ 16  appledoc                            0x000000010230c95b appledoc + 67931
  @ 17  appledoc                            0x000000010230c5cd appledoc + 67021
  @ 18  appledoc                            0x000000010230c7a1 appledoc + 67489
  @ 19  appledoc                            0x000000010230c7a1 appledoc + 67489
  @ 20  appledoc                            0x000000010230c18f appledoc + 65935
  @ 21  appledoc                            0x000000010230ab9e appledoc + 60318
  @ 22  appledoc                            0x00000001022ff920 appledoc + 14624
  @ 23  appledoc                            0x00000001022fe0d6 appledoc + 8406
  @ 24  appledoc                            0x00000001022fe233 appledoc + 8755
  @ 25  appledoc                            0x00000001022fe3c7 appledoc + 9159
  @ 26  appledoc                            0x00000001022fd6cc appledoc + 5836
  @ 27  ???                                 0x000000000000000b 0x0 + 11

使用命令:

appledoc --no-create-docset --output ./doc --project-name "项目名" --project-company "公司名" --company-id "公司ID" .

对项目导出appledoc html文档,遇到“method type doesn't match!”问题,经查看appledoc github Issues,发现此问题原因是:
在.h文件中声明了一个class修改属性,而在.m文件中编写一个与这个属性名称一样的类方法,那.m中应该是存在与属性名称一样的一个类方法、一个实例方法。这样的情况appledoc应该是会出现当前的问题。

解决办法:
将.m文件中的与属性名称一致的类方法注释,再次执行导出文档命令即可,不影响appledoc 文档的导出。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 官网 中文版本 好的网站 Content-type: text/htmlBASH Section: User ...
    不排版阅读 10,036评论 0 5
  • Swift1> Swift和OC的区别1.1> Swift没有地址/指针的概念1.2> 泛型1.3> 类型严谨 对...
    cosWriter阅读 13,911评论 1 32
  • 前言 本篇文章主要讲解如何使用不同的工具来生成HTML注释文档 , 对于注释的使用和说明你可以在注释使用这篇文章得...
    与伟大LEE同行阅读 7,351评论 2 5
  • ORA-00001: 违反唯一约束条件 (.) 错误说明:当在唯一索引所对应的列上键入重复值时,会触发此异常。 O...
    我想起个好名字阅读 11,032评论 0 9
  • 一、Python简介和环境搭建以及pip的安装 4课时实验课主要内容 【Python简介】: Python 是一个...
    _小老虎_阅读 11,335评论 0 10

友情链接更多精彩内容