Skip to content

terminating with uncaught exception of type NSException #1

@jimmyhayat

Description

@jimmyhayat

Hi,

At first congratulation for your work !

May i have a chance from you to help me. I'm trying your project and i have an issue when it run :

2017-06-06 13:48:57.935 pTV[15062:482088] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSSingleObjectArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
(
0 CoreFoundation 0x00000001081e5d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010772c21e objc_exception_throw + 48
2 CoreFoundation 0x000000010823ec2f -[__NSSingleObjectArrayI objectAtIndex:] + 111
3 pTV 0x0000000104ed76a9 -[APM3UParser parse] + 953
4 pTV 0x0000000104ed5d3f -[ViewController getChannels:] + 127
5 pTV 0x0000000104ed57b0 __29-[ViewController viewDidLoad]_block_invoke + 128
6 pTV 0x0000000104ed6dfe __46-[APNetwork getPlaylistWithCompletionHandler:]_block_invoke_2 + 158
7 pTV 0x0000000104eff6e9 __72-[AFURLSessionManagerTaskDelegate URLSession:task:didCompleteWithError:]_block_invoke_2.150 + 201
8 libdispatch.dylib 0x000000010a425978 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x000000010a44f0cd _dispatch_client_callout + 8
10 libdispatch.dylib 0x000000010a42f9eb _dispatch_main_queue_callback_4CF + 733
11 CoreFoundation 0x00000001081a9e49 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
12 CoreFoundation 0x000000010816f37d __CFRunLoopRun + 2205
13 CoreFoundation 0x000000010816e884 CFRunLoopRunSpecific + 420
14 GraphicsServices 0x000000010b5e4a6f GSEventRunModal + 161
15 UIKit 0x00000001086fbc68 UIApplicationMain + 159
16 pTV 0x0000000104ed716f main + 111
17 libdyld.dylib 0x000000010a49b68d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

I d'ont know how to resolve this issue. Could you help me ?

Xcode : 8.1.2
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions