tomaz/appledoc — Issue #182: NSInvalidArgumentException: -[__NSCFConstantString code]: unrecognized selector sent to instance
Author: TrahDivad
Created: 2012-02-22 08:39:20+00:00
State: open

I get this exception when trying to parse a simple test project.
Here's the settings I'm using:

```xml

--project-name
Mocha2D
--project-company
hart[dev]
--company-id
com.hart-dev
--logformat
xcode
--templates
Templates
--verbose
6
--input

../Sources

--output
.

```

```
appledoc version: 2.0.5 (build 737)

Initializing...
Parsing source files...
Initializing parser with settings provider GBApplicationSettingsProvider...
Initializing objective-c parser with settings provider GBApplicationSettingsProvider...
Parsing objects from 1 paths...
Parsing '../Sources'...
Parsing path '../Sources'...
Parsing file '../Sources/Mocha2D.h'...
Parsing source code from '../Sources/Mocha2D.h'...
Parsing objective-c objects...
Initializing tokenizer...
Matched comment 'Very basic comment' at line 9.
Parsing file '../Sources/MOViewController.h'...
Parsing source code from '../Sources/MOViewController.h'...
Parsing objective-c objects...
Initializing tokenizer...
Matched comment 'MOViewController …controller class.' at line 11.
Initializing class with name MOViewController...
Initializing adopted protocols provider for MOViewController...
Initializing ivars provider for MOViewController...
Initializing methods provider for MOViewController...
Matched MOViewController class definition at line 14.
Assigned comment 'MOViewController …controller class.' to 'MOViewController'...
Resetting comments...
Matched superclass UIViewController.
Registering class MOViewController...
Parsing file '../Sources/MOViewController.m'...
Parsing source code from '../Sources/MOViewController.m'...
Parsing objective-c objects...
Initializing tokenizer...
Initializing extension for class MOViewController...
Initializing adopted protocols provider for MOViewController()...
Initializing methods provider for MOViewController()...
Matched MOViewController() extension definition at line 0.
Resetting comments...
Registering category MOViewController()...
Initializing class with name MOViewController...
Initializing adopted protocols provider for MOViewController...
Initializing ivars provider for MOViewController...
Initializing methods provider for MOViewController...
Matched MOViewController class declaration at line 15.
Resetting comments...
Resetting comments...
Matched method -initWithNibName:bundle: at line 17.
MOViewController: Registering method initWithNibName:bundle:...
MOViewController: Registering section default...
Resetting comments...
Matched method -loadView at line 26.
MOViewController: Registering method loadView...
Resetting comments...
Matched method -viewDidLoad at line 32.
MOViewController: Registering method viewDidLoad...
Resetting comments...
Matched method -viewDidUnload at line 38.
MOViewController: Registering method viewDidUnload...
Resetting comments...
Matched method -shouldAutorotateToInterfaceOrientation: at line 44.
MOViewController: Registering method shouldAutorotateToInterfaceOrientation:...
Registering class MOViewController...
MOViewController: Merging data from MOViewController...
MOViewController: Merging adopted protocols from MOViewController...
MOViewController: Merging ivars from MOViewController...
MOViewController: Merging methods from MOViewController...
MOViewController: Registering section default...
MOViewController: Registering method -[MOViewController initWithNibName:bundle:]...
MOViewController: Registering section default...
MOViewController: Registering method -[MOViewController loadView]...
MOViewController: Registering section default...
MOViewController: Registering method -[MOViewController viewDidLoad]...
MOViewController: Registering section default...
MOViewController: Registering method -[MOViewController viewDidUnload]...
MOViewController: Registering section default...
MOViewController: Registering method -[MOViewController shouldAutorotateToInterfaceOrientation:]...
Parsing file '../Sources/Prefix.pch'...
Parsed 3 source files.
Parsing static documents from 0 paths...
Parsed 0 static document files.
Finished parsing in 14ms.

Processing parsed data...
Initializing processor with settings provider GBApplicationSettingsProvider...
Initializing comments processor with settings provider GBApplicationSettingsProvider...
Processing parsed objects...
Checking for known superclasses and adopted protocols...
Merging known categories to classes...
Checking MOViewController() for merging...
Unregistering empty sections...
Processing class MOViewController...
Processing method -[MOViewController initWithNibName:bundle:]...
Removing undocumented method -[MOViewController initWithNibName:bundle:]...
Unregistering empty sections...
Finished processing method -[MOViewController initWithNibName:bundle:].
Processing method -[MOViewController loadView]...
Removing undocumented method -[MOViewController loadView]...
Unregistering empty sections...
Finished processing method -[MOViewController loadView].
Processing method -[MOViewController viewDidLoad]...
Removing undocumented method -[MOViewController viewDidLoad]...
Unregistering empty sections...
Finished processing method -[MOViewController viewDidLoad].
Processing method -[MOViewController viewDidUnload]...
Removing undocumented method -[MOViewController viewDidUnload]...
Unregistering empty sections...
Finished processing method -[MOViewController viewDidUnload].
Processing method -[MOViewController shouldAutorotateToInterfaceOrientation:]...
Removing undocumented method -[MOViewController shouldAutorotateToInterfaceOrientation:]...
Unregistering empty sections...
Finished processing method -[MOViewController shouldAutorotateToInterfaceOrientation:].
Processing Comment 'MOViewController …controller class.' found in MOViewController.h...
- Comment has 2 lines.
- Found comment block in lines 11..13...
- Registering short description from MOViewController …controller class....
- Registering text block MOViewController …controller class. at MOViewController.h@11...
- Converting cross references in 'MOViewController …controller class.'...
- Registering text block MOViewController …controller class. at MOViewController.h@11...
- Converting cross references in 'MOViewController …controller class.'...
Registering component ...
Finished processing class MOViewController.
Finished processing in 4ms.

Generating output...
Initializing generator with settings provider GBApplicationSettingsProvider...
Generating output from parsed objects...
Initializing generation steps...
Initializing output generators array...
Initializing output generator with settings provider GBApplicationSettingsProvider...
Initializing output generator with settings provider GBApplicationSettingsProvider...
Initializing output generator with settings provider GBApplicationSettingsProvider...
Running generation steps...
Generation step 1/3: Running GBHTMLOutputGenerator...
Copying template files from 'Templates/html' to '/Users/david/Dropbox/Projects/Mocha2D/Mocha2D/Documentation/html'...
Copying template files from 'Templates/html' to '/Users/david/Dropbox/Projects/Mocha2D/Mocha2D/Documentation/html'...
Removing temporary files from '/Users/david/Dropbox/Projects/Mocha2D/Mocha2D/Documentation/html'...
Creating template handler for template file 'Templates/html/document-template.html'...
Parsing template from Templates/html/document-template.html...
Clearing parsed values...
Clearing parsed values...
Found section template GBCommentComponentsList at line 46...
Found section template GBCommentComponent at line 50...
Removing template file 'document-template.html' from output...
Creating template handler for template file 'Templates/html/hierarchy-template.html'...
Parsing template from Templates/html/hierarchy-template.html...
Clearing parsed values...
Clearing parsed values...
Found section template Classes at line 79...
Found section template Navigation at line 89...
Removing template file 'hierarchy-template.html' from output...
Creating template handler for template file 'Templates/html/index-template.html'...
Parsing template from Templates/html/index-template.html...
Clearing parsed values...
Clearing parsed values...
Found section template Navigation at line 93...
Removing template file 'index-template.html' from output...
Creating template handler for template file 'Templates/html/object-template.html'...
Parsing template from Templates/html/object-template.html...
Clearing parsed values...
Clearing parsed values...
Found section template Method at line 214...
Found section template MethodDeclaration at line 294...
Found section template TaskTitle at line 299...
Found section template TaskMethod at line 304...
Found section template TaskSelector at line 315...
Found section template GBCommentComponentsList at line 320...
Found section template GBCommentComponent at line 324...
Found section template ObjectSpecification at line 328...
Found section template Navigation at line 336...
Found section template JumpTo at line 343...
Found section template TableOfContents at line 381...
Removing template file 'object-template.html' from output...
GBHTMLOutputGenerator is generating output...
Generating output for class MOViewController...
Initializing variables provider...
Initializing variables provider with settings provider GBApplicationSettingsProvider...
Rendering { object = MOView…"...
Rendering { filePath = "Cla…"//apple_ref/occ/...
Indexing DocSet...
Running command '/Developer/usr/bin/docsetutil index /Users/david/Dropbox/Projects/Mocha2D/Mocha2D/Documentation/docset'
Oops, something went wrong...
NSInvalidArgumentException: -[__NSCFConstantString code]: unrecognized selector sent to instance 0x7fff70e93e00
@ 0 CoreFoundation 0x00007fff849e3fc6 __exceptionPreprocess + 198
@ 1 libobjc.A.dylib 0x00007fff862bed5e objc_exception_throw + 43
@ 2 CoreFoundation 0x00007fff84a702ae -[NSObject doesNotRecognizeSelector:] + 190
@ 3 CoreFoundation 0x00007fff849d0e73 ___forwarding___ + 371
@ 4 CoreFoundation 0x00007fff849d0c88 _CF_forwarding_prep_0 + 232
@ 5 appledoc 0x0000000108665139 appledoc + 41273
@ 6 appledoc 0x00000001086650d8 appledoc + 41176
@ 7 Foundation 0x00007fff88701218 -[NSConcreteTask launchWithDictionary:] + 470
@ 8 appledoc 0x000000010869e4d1 appledoc + 275665
@ 9 appledoc 0x000000010869c611 appledoc + 267793
@ 10 appledoc 0x000000010869b403 appledoc + 263171
@ 11 appledoc 0x0000000108688555 appledoc + 185685
@ 12 CoreFoundation 0x00007fff849dbd5e __NSArrayEnumerate + 718
@ 13 appledoc 0x000000010868831f appledoc + 185119
@ 14 appledoc 0x000000010865f146 appledoc + 16710
@ 15 appledoc 0x000000010865d81a appledoc + 10266
@ 16 appledoc 0x000000010865d978 appledoc + 10616
@ 17 appledoc 0x000000010865ce64 appledoc + 7780
```