tomaz / appledoc

Objective-c code Apple style documentation set generator.
http://gentlebytes.com
4.2k stars 644 forks source link

during working with NS_ENUM() and NS_OPTIONS() an unrecognised selector was called. #554

Open holex opened 9 years ago

holex commented 9 years ago

the procedure actually was in the middle of collecting the type NS_ENUM(...) {...}; and type NS_OPTIONS(...) {...}; values' documentations – which are not available in the project at all.

that is the crash-log which appeared on the console when I tried to run it on a massive project.

I hope it helps, guys.

2015-08-27 15:26:42.002 appledoc[9795:793068] -[GBEnumConstantData methodSelector]: unrecognized selector sent to instance 0x7ff909b01a60
Oops, something went wrong...
NSInvalidArgumentException: -[GBEnumConstantData methodSelector]: unrecognized selector sent to instance 0x7ff909b01a60
  @ 0   CoreFoundation                      0x00007fff8ee0f03c __exceptionPreprocess + 172
  @ 1   libobjc.A.dylib                     0x00007fff967da76e objc_exception_throw + 43
  @ 2   CoreFoundation                      0x00007fff8ee120ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
  @ 3   CoreFoundation                      0x00007fff8ed57e24 ___forwarding___ + 1028
  @ 4   CoreFoundation                      0x00007fff8ed57998 _CF_forwarding_prep_0 + 120
  @ 5   appledoc                            0x000000010ef021cd appledoc + 209357
  @ 6   appledoc                            0x000000010ef08391 appledoc + 234385
  @ 7   appledoc                            0x000000010ef07eba appledoc + 233146
  @ 8   appledoc                            0x000000010ef07a3e appledoc + 231998
  @ 9   appledoc                            0x000000010ef06bae appledoc + 228270
  @ 10  appledoc                            0x000000010ef0672a appledoc + 227114
  @ 11  appledoc                            0x000000010ef03930 appledoc + 215344
  @ 12  appledoc                            0x000000010ef035ca appledoc + 214474
  @ 13  appledoc                            0x000000010ef02bf3 appledoc + 211955
  @ 14  appledoc                            0x000000010ef02714 appledoc + 210708
  @ 15  appledoc                            0x000000010ef0d7bb appledoc + 255931
  @ 16  appledoc                            0x000000010ef0d497 appledoc + 255127
  @ 17  appledoc                            0x000000010ef0c6c0 appledoc + 251584
  @ 18  appledoc                            0x000000010ef0bc64 appledoc + 248932
  @ 19  appledoc                            0x000000010eed2aa0 appledoc + 15008
  @ 20  appledoc                            0x000000010eed1007 appledoc + 8199
  @ 21  appledoc                            0x000000010eed115b appledoc + 8539
  @ 22  appledoc                            0x000000010eed12e8 appledoc + 8936
  @ 23  appledoc                            0x000000010eed05c4 appledoc + 5572
aksvenk commented 9 years ago

This seems to happen when the enum type is included word for word in the comment.

eg.

typedef NS_ENUM(NSInteger, SomeType) {
/**
* SomeType - Description of type A
*/
SomeTypeA,
/**
* SomeType - Description of type B
*/
SomeTypeB
}
KevinJue commented 8 years ago

got same issue.

Actually you can't comment inside NS_ENUM just outside