Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Oops, something went wrong... #244

Closed
mdamjanic7 opened this Issue · 7 comments

5 participants

@mdamjanic7

I've just started the appledoc for the first time, and after a lot of warnings this is what I got:

Oops, something went wrong...
NSInternalInconsistencyException: Invalid parameter not satisfying: [arguments count] >= 1
  @ 0   CoreFoundation                      0x00007fff8f7a9716 __exceptionPreprocess + 198
  @ 1   libobjc.A.dylib                     0x00007fff97efe470 objc_exception_throw + 43
  @ 2   CoreFoundation                      0x00007fff8f7a9558 +[NSException raise:format:arguments:] + 104
  @ 3   Foundation                          0x00007fff9a1af962 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189
  @ 4   appledoc                            0x0000000106a6755f appledoc + 91487
  @ 5   appledoc                            0x0000000106a5fbcd appledoc + 60365
  @ 6   appledoc                            0x0000000106a62b8f appledoc + 72591
  @ 7   appledoc                            0x0000000106a5f80a appledoc + 59402
  @ 8   appledoc                            0x0000000106a5f123 appledoc + 57635
  @ 9   appledoc                            0x0000000106a5f030 appledoc + 57392
  @ 10  appledoc                            0x0000000106a62b8f appledoc + 72591
  @ 11  appledoc                            0x0000000106a5eff4 appledoc + 57332
  @ 12  appledoc                            0x0000000106a5ed39 appledoc + 56633
  @ 13  appledoc                            0x0000000106a5f51c appledoc + 58652
  @ 14  appledoc                            0x0000000106a5f2bf appledoc + 58047
  @ 15  appledoc                            0x0000000106a5d27f appledoc + 49791
  @ 16  appledoc                            0x0000000106a5b831 appledoc + 43057
  @ 17  appledoc                            0x0000000106a5c67d appledoc + 46717
  @ 18  appledoc                            0x0000000106a5c7c2 appledoc + 47042
  @ 19  appledoc                            0x0000000106a5c7c2 appledoc + 47042
  @ 20  appledoc                            0x0000000106a5c7c2 appledoc + 47042
  @ 21  appledoc                            0x0000000106a5c7c2 appledoc + 47042
  @ 22  appledoc                            0x0000000106a5b5af appledoc + 42415
  @ 23  appledoc                            0x0000000106a5485b appledoc + 14427
  @ 24  appledoc                            0x0000000106a534da appledoc + 9434
  @ 25  appledoc                            0x0000000106a53638 appledoc + 9784
  @ 26  appledoc                            0x0000000106a52b24 appledoc + 6948
Showing first 200 warnings only
Command /bin/sh failed with exit code 250

Any ideas?

@tomaz
Owner

This indicates an issue with source code passed to appledoc. Specifically, it's about unsupported objc syntax (likely you're using method with argument but not giving type or variable name). To pinpoint, slowly increase verbosity (--verbose) until you find the file, class and method in question (take a look at log lines just before the assertion).

3.0 will be more relaxed about this, but 2.0 requires stricter syntax (which yields better code readability IMHO, which was why I decided to go with it).

@tomaz tomaz closed this
@tomaz
Owner
@KaboomProjeXs

Well, I use Xcode Run Script

#appledoc Xcode script
# Start constants
company="XXX";
companyID="com.XXX";
companyURL="http://XXX.com";
target="iphoneos";
outputPath="~/Help";
# End constants
/usr/bin/appledoc \
--project-name "${PROJECT_NAME}" \
--project-company "${company}" \
--company-id "${companyID}" \
--docset-atom-filename "${company}.atom" \
--docset-feed-url "${companyURL}/${company}/%DOCSETATOMFILENAME" \
--docset-package-url "${companyURL}/${company}/%DOCSETPACKAGEFILENAME" \
--docset-fallback-url "${companyURL}/${company}" \
--output "${outputPath}" \
--ignore "Pods" \
--publish-docset \
--docset-platform-family "${target}" \
--logformat xcode \
--keep-intermediate-files \
--no-repeat-first-par \
--no-warn-invalid-crossref \
--exit-threshold 2 \
--verbose 6 \
"${PROJECT_DIR}"

What do you use to generate the html?

@tomaz
Owner

Nothing much different, except I just tried running appledoc from sources in Xcode and only through the example file provided. As said the error probably comes from another file; either take a look at log output to see which one it is (I'd recommend lowering --verbose level a bit), or progressively add files to appledoc until you hit the one that's causing the issue. Then isolate on that single file and see what exactly causes it. Note that it'll probably be simpler to use appledoc straight from Terminal than from Xcode build script.

@exception
@Litome

Just left a comment on #211 with log from console.
I've got the same issue including when parsing the standard AppDelegate.h files generated by xCode on creation of a clean new project as single App from scratch.
Please help...

@tomaz
Owner

Answered on #211 :)

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.