Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

NSInternalInconsistencyException on Building #165

Closed
tspycher opened this Issue · 2 comments

2 participants

@tspycher

Seems to be related to #103

I'm not able to build documentation for a small iOS Application. Running the command:

appledoc \
--project-name AppName \
--project-company "DotNine & Zero-One" \
--company-id zero-one.AppName \
--output ./doc \
-t ~/.appledoc/Templates/ \
../AppName/

Results in:

appledoc version: 2.0.5 (build 752)

2012-01-04 06:24:48.931 appledoc[15351:d07] *** Assertion failure in -[GBMethodArgument initWithName:types:var:variableArg:terminationMacros:], /Users/tspycher/.appledoc/Model/GBMethodArgument.m:29
Oops, something went wrong...
NSInternalInconsistencyException: Invalid parameter not satisfying: ([types count] == 0 && var == nil) || ([types count] > 0 && var != nil)
  @ 0   CoreFoundation                      0x00007fff8b750286 __exceptionPreprocess + 198
  @ 1   libobjc.A.dylib                     0x00007fff904a6d5e objc_exception_throw + 43
  @ 2   CoreFoundation                      0x00007fff8b7500ba +[NSException raise:format:arguments:] + 106
  @ 3   Foundation                          0x00007fff8af257d3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 169
  @ 4   appledoc                            0x0000000108a367b9 appledoc + 96185
  @ 5   appledoc                            0x0000000108a365ec appledoc + 95724
  @ 6   appledoc                            0x0000000108a2d547 appledoc + 58695
  @ 7   appledoc                            0x0000000108a2fba0 appledoc + 68512
  @ 8   appledoc                            0x0000000108a2cc88 appledoc + 56456
  @ 9   appledoc                            0x0000000108a2fba0 appledoc + 68512
  @ 10  appledoc                            0x0000000108a2c8e5 appledoc + 55525
  @ 11  appledoc                            0x0000000108a2b2db appledoc + 49883
  @ 12  appledoc                            0x0000000108a2b1aa appledoc + 49578
  @ 13  appledoc                            0x0000000108a2fba0 appledoc + 68512
  @ 14  appledoc                            0x0000000108a2b115 appledoc + 49429
  @ 15  appledoc                            0x0000000108a2a952 appledoc + 47442
  @ 16  appledoc                            0x0000000108a2c546 appledoc + 54598
  @ 17  appledoc                            0x0000000108a2c37c appledoc + 54140
  @ 18  appledoc                            0x0000000108a2a31e appledoc + 45854
  @ 19  appledoc                            0x0000000108a28982 appledoc + 39298
  @ 20  appledoc                            0x0000000108a29785 appledoc + 42885
  @ 21  appledoc                            0x0000000108a298d0 appledoc + 43216
  @ 22  appledoc                            0x0000000108a298d0 appledoc + 43216
  @ 23  appledoc                            0x0000000108a298d0 appledoc + 43216
  @ 24  appledoc                            0x0000000108a298d0 appledoc + 43216
  @ 25  appledoc                            0x0000000108a28711 appledoc + 38673
  @ 26  appledoc                            0x0000000108a21d40 appledoc + 11584
  @ 27  appledoc                            0x0000000108a209fa appledoc + 6650
  @ 28  appledoc                            0x0000000108a20b54 appledoc + 6996
  @ 29  appledoc                            0x0000000108a20044 appledoc + 4164
  @ 30  ???                                 0x000000000000000c 0x0 + 12

I've checked the code, and it looks oukay... Need help. Thanks

@tomaz
Owner

appledoc only parses subset of the code and may not be compatible with every valid syntax. From your error I can't deduce what can cause it, can you isolate the file and method where this happens (crank up verbosity to 3-6 with --verbose <value>), then post the relevant bits here (or send it to my email if you're concerned about privacy).

@tomaz
Owner

Hmm, looking into it more: are you using "shortcuts" for methods, such as omitting type or var declaration? Although this is valid Objective C syntax, appledoc doesn't handle it - it's one of the compromises I made during coding to fasten up the process...

Also: to make "Oops" messages easier to debug, use debug build of appledoc (it'll make stack trace much more readable).

@tomaz tomaz closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.