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 文档的导出。
网友评论