appledoc
appledoc copied to clipboard
`@property CGPoint CGPoint` causes NSInvalidArgumentException
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
@interface ImagePoint : NSObject
/**
* @brief Gets a CGPoint object representing the same value as this point.
*/
@property(readonly) CGPoint CGPoint;
@end
The property CGPoint makes appledoc crash:
...
VERBOSE | Rendering { filePath = "Cla…"//apple_ref/occ/...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b2118f10>...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b1fafce0>...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b1fafce0>...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b1fafce0>...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b1fafe20>...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b1ce6030>...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b1cf5d90>...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b1e95fd0>...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b204ab00>...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b2061880>...
VERBOSE | Rendering { filePath = "Cla…"//apple_ref/occ/...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b1dbba50>...
DEBUG | Registering component <GBCommentComponent: 0x7fa0b1dbba50>...
Oops, something went wrong...
NSInvalidArgumentException: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
@ 0 CoreFoundation 0x00007fffa7ff17bb __exceptionPreprocess + 171
@ 1 libobjc.A.dylib 0x00007fffbc75ea2a objc_exception_throw + 48
@ 2 CoreFoundation 0x00007fffa7eeb183 -[__NSPlaceholderArray initWithObjects:count:] + 275
@ 3 CoreFoundation 0x00007fffa7ef2a84 +[NSArray arrayWithObjects:count:] + 52
@ 4 appledoc 0x000000010dbcdbd4 appledoc + 375764
@ 5 appledoc 0x000000010dbcc2ef appledoc + 369391
@ 6 appledoc 0x000000010dbcb190 appledoc + 364944
@ 7 appledoc 0x000000010dbc9602 appledoc + 357890
@ 8 appledoc 0x000000010dbaff23 appledoc + 253731
@ 9 CoreFoundation 0x00007fffa7f6f072 __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 114
@ 10 CoreFoundation 0x00007fffa7f6ef2f -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 239
@ 11 appledoc 0x000000010dbafd0c appledoc + 253196
@ 12 appledoc 0x000000010dbaf73d appledoc + 251709
@ 13 appledoc 0x000000010db763b5 appledoc + 17333
@ 14 appledoc 0x000000010db74633 appledoc + 9779
@ 15 appledoc 0x000000010db74787 appledoc + 10119
@ 16 appledoc 0x000000010db74913 appledoc + 10515
@ 17 appledoc 0x000000010db73c18 appledoc + 7192
Renaming the property or changing the type to anything else stops it from crash but I don't want to do that.
change @property(readonly) CGPoint CGPoint; to @property(readonly) CGPoint point; will be ok
Can't change the public API of the library.