0

我收到了我的可可应用程序的崩溃报告。行号与我的应用程序的源代码不对应。任何想法为什么?即使此崩溃报告来自调试二进制文件?我知道它在哪个函数中崩溃,但我想确定行号

下面的行表示数字 5209 ,我的代码甚至没有这一行。我怎样才能将它与我的代码联系起来?

0x00000001000037b9 +[ITunesProvider getITunesMediaFiles:] + 5209

完整的跟踪是

Application Specific Information:
abort() called
*** Terminating app due to uncaught exception \'NSRangeException\', reason: \'*** -[NSArray getObjects:range:]: index (1967) beyond bounds (0)\'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x00007fff86c08784 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x00007fff832aaf03 objc_exception_throw + 45
    2   CoreFoundation                      0x00007fff86bb3605 -[NSArray getObjects:range:] + 341
    3   CoreFoundation                      0x00007fff86c128fe -[NSArray countByEnumeratingWithState:objects:count:] + 206
    4   TestAppMac                        0x00000001000037b9 +[ITunesProvider getITunesMediaFiles:] + 5209
    5   TestAppMac                        0x000000010000913c -[AppController processFiles:] + 412
    6   Foundation                          0x00007fff8662a114 __NSThread__main__ + 1429
    7   libSystem.B.dylib                   0x00007fff84894fd6 _pthread_start + 331
    8   libSystem.B.dylib                   0x00007fff84894e89 thread_start + 13
)
4

0 回答 0