NSInvaludArgumentException issue

49 views
Skip to first unread message

Raymond Camden

unread,
Aug 6, 2014, 11:49:33 AM8/6/14
to appl...@googlegroups.com
I'm getting this error when running appledoc on a set of code:

Oops, something went wrong...
NSInvalidArgumentException: -[__NSCFString appendString:]: nil argument
  @ 0   CoreFoundation                      0x00007fff95ea825c __exceptionPreprocess + 172
  @ 1   libobjc.A.dylib                     0x00007fff8b5b2e75 objc_exception_throw + 43
  @ 2   CoreFoundation                      0x00007fff95ea810c +[NSException raise:format:] + 204
  @ 3   CoreFoundation                      0x00007fff95e77def mutateError + 159
  @ 4   appledoc                            0x000000010cd34a3d appledoc + 84541
  @ 5   appledoc                            0x000000010cd3c293 appledoc + 115347
  @ 6   appledoc                            0x000000010cd343bc appledoc + 82876
  @ 7   appledoc                            0x000000010cd33e55 appledoc + 81493
  @ 8   appledoc                            0x000000010cd30f94 appledoc + 69524
  @ 9   appledoc                            0x000000010cd2ecb3 appledoc + 60595
  @ 10  appledoc                            0x000000010cd302c1 appledoc + 66241
  @ 11  appledoc                            0x000000010cd2ff6a appledoc + 65386
  @ 12  appledoc                            0x000000010cd2fba1 appledoc + 64417
  @ 13  appledoc                            0x000000010cd2e960 appledoc + 59744
  @ 14  appledoc                            0x000000010cd23540 appledoc + 13632
  @ 15  appledoc                            0x000000010cd21d57 appledoc + 7511
  @ 16  appledoc                            0x000000010cd21ec0 appledoc + 7872
  @ 17  appledoc                            0x000000010cd2204b appledoc + 8267
  @ 18  appledoc                            0x000000010cd21304 appledoc + 4868

When I increase the verbosity, I get this rightbefore (and I'm going to rename some stuff due to NDA-lameness):

Registering typedef block AdobeFooNetworkResponseCompletion...
Matched AdobeFooNetworkResponseProgress typedef block definition at line 55.

The code in question is the last line of the file:

typedef void(^AdobeFooNetworkResponseProgress)(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpected);

Which as far as I know looks fine to me.

Tom @ Gentle Bytes

unread,
Aug 6, 2014, 1:02:31 PM8/6/14
to appledoc on behalf of Raymond Camden
Seems legit code to me too.

Craslog doesn't tell me much except it's trying to append nil string.
Running appledoc from its Xcode project and giving it the same file to
chew on should include debug symbols in crashlog.

Other than that keep in mind currently appledoc doesn't support blocks.
But should not crash either :)

Tom

On 6 Aug 2014, at 17:49, Raymond Camden via appledoc wrote:

> I'm getting this error when running appledoc on a set of code:
>
> Oops, something went wrong...
> NSInvalidArgumentException: -[\_\_NSCFString appendString:]: nil
> argument
> @ 0 CoreFoundation 0x00007fff95ea825c
> \_\_exceptionPreprocess + 172
> @ 1 libobjc.A.dylib 0x00007fff8b5b2e75
> objc\_exception\_throw + 43
> --
> You received this message because you are subscribed to the Google
> Groups "appledoc" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to appledoc+u...@googlegroups.com.
> To post to this group, send email to appl...@googlegroups.com.
> Visit this group at http://groups.google.com/group/appledoc.
> For more options, visit https://groups.google.com/d/optout.

Raymond Camden

unread,
Aug 6, 2014, 3:10:38 PM8/6/14
to appledoc on behalf of Tom
I'll file a bug report. Any way to make appledoc continue past this error in the meantime?


To unsubscribe from this group and stop receiving emails from it, send an email to appledoc+unsubscribe@googlegroups.com.

To post to this group, send email to appl...@googlegroups.com.
Visit this group at http://groups.google.com/group/appledoc.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "appledoc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appledoc/VDvl8syjkwQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appledoc+unsubscribe@googlegroups.com.

To post to this group, send email to appl...@googlegroups.com.
Visit this group at http://groups.google.com/group/appledoc.
For more options, visit https://groups.google.com/d/optout.



--
===========================================================================
Raymond Camden, Web Developer for Adobe

Email : raymon...@gmail.com
Blog : www.raymondcamden.com
Twitter: raymondcamden
Reply all
Reply to author
Forward
0 new messages